The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: jaraide on August 23, 2010, 05:34:10 PM

Title: [Beginner Tutorial] Character Blinking
Post by: jaraide on August 23, 2010, 05:34:10 PM
Okay, the first thing you want to do is create a common event. Make it a parellell process. Call it something obvious, like "BLINKING" or "Character Blink". Note that this does not work with the RM2003's switch front character mode, but really, who uses that anyways?
So in the Common Event thing, enter in these commands:
<> Variable Operations: [0001: BLINKING] set rand 1-3
<>Conditional Branch: Variable [0001: BLINKING] = 1
Code: [Select]
wait: 0.1 sec[code]
[code]change hero graphic: graphic with eyes shut
Code: [Select]
wait: 0.1 sec

Code: [Select]
change hero graphic: normal hero graphic
<>End
<>Conditional Branch: Variable [0001: BLINKING] = 2
Code: [Select]
wait: 1.0 sec
Code: [Select]
change hero graphic: graphic with eyes shut
Code: [Select]
wait: 0.1 sec
Code: [Select]
change hero graphic: normal hero graphic.
<>End
<>Conditional Branch: Variable [0001: BLINKING] = 3
Code: [Select]
wait:  2.0 sec
Code: [Select]
change hero graphic: graphic with eyes shut
Code: [Select]
wait: 0.1 sec
Code: [Select]
     change hero graphic: normal hero graphic.
<>End
This way, the hero blinks what seems to be intermittently, and sometimes blinks twice in quick succession and stuff. It's a very neat and subtle addition to your game.
Something to consider when fine tuning the blinking feature is that in real life people blink about once every four seconds.
Title: Re: [Beginner Tutorial] Character Blinking
Post by: GamingCraving on August 25, 2010, 11:03:41 AM
Ooh, thank you. Now I can make a perfect Chrono! :D
Title: Re: [Beginner Tutorial] Character Blinking
Post by: jaraide on August 29, 2010, 04:41:23 AM
thanks :D
Title: Re: [Beginner Tutorial] Character Blinking
Post by: naizehcnas on September 26, 2010, 08:22:04 AM
demo please... ;)