blinking text

Started by dragonwrath7, July 29, 2010, 12:45:40 pm

Previous topic - Next topic

dragonwrath7

 :^_^': 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).

ForeverZer0

"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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

ForeverZer0

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

SBR*

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?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

SBR*

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.