RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.
[Beginner Tutorial] Character Blinking

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 75
I Love Pieeeee
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.

**
Rep: +0/-0Level 75
Let's Player
Ooh, thank you. Now I can make a perfect Chrono! :D


**
Rep: +0/-0Level 76
RMRK Junior
demo please... ;)