Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: dragonwrath7 on July 29, 2010, 12:45:40 pm

Title: blinking text
Post by: dragonwrath7 on July 29, 2010, 12:45:40 pm
 :^_^': ok, maybe this is a stupid question (I might even be posting in the wrong place  :shy: ), but...
Is it possible to make text and images and stuff blink, like the actor blinks in battle when its his turn?

I want to add the effect to the character's name and stats, as well as the small box that shows the turn order (came with a script I'm using - Atoa's CTB, uses pics of the actors and enemies).
Title: Re: blinking text
Post by: ForeverZer0 on August 04, 2010, 10:16:11 pm
"blink" is a built in feature for all sprites on RGSS. Read the Sprite chapter in the help menu, it should point you in the right direction.
Title: Re: blinking text
Post by: Blizzard on August 05, 2010, 04:55:21 am
For RPG::Sprite instances only, though. The Sprite class does not possess that feature. Also, remember that you need to update that sprite every frame for it to keep blinking.
Instead of drawing the text directly on a window, you would need to put the text on a sprite above the window.
Title: Re: blinking text
Post by: ForeverZer0 on August 05, 2010, 12:20:21 pm
Quote from: Blizzard on August 05, 2010, 04:55:21 am
For RPG::Sprite instances only, though. The Sprite class does not possess that feature. Also, remember that you need to update that sprite every frame for it to keep blinking.
Instead of drawing the text directly on a window, you would need to put the text on a sprite above the window.


Oops. Thanks for the correction.
Title: Re: blinking text
Post by: SBR* on August 06, 2010, 05:16:38 am
Quote from: Blizzard on August 05, 2010, 04:55:21 am
For RPG::Sprite instances only, though. The Sprite class does not possess that feature. Also, remember that you need to update that sprite every frame for it to keep blinking.
Instead of drawing the text directly on a window, you would need to put the text on a sprite above the window.


But don't you still use the Sprite class then? When comes the RPG::Sprite come in? Since you use Bitmap to draw it?
Title: Re: blinking text
Post by: Blizzard on August 06, 2010, 05:51:03 am
Sprite is the superclass of RPG::Sprite so RPG::Sprite has all the functionality that Sprite has. RPG::Sprite simply has some additional features and needs to be updated each frame.
Title: Re: blinking text
Post by: SBR* on August 06, 2010, 11:32:14 am
Quote from: Blizzard on August 06, 2010, 05:51:03 am
Sprite is the superclass of RPG::Sprite so RPG::Sprite has all the functionality that Sprite has. RPG::Sprite simply has some additional features and needs to be updated each frame.


Lol, I forgot that :P.