Gw Temp

Menu

Tutorial - 'Blinking' by VideoWizard

An item about RPGMaker 2000 posted on

Blurb

How to make characters in your game blink, thereby adding realism.

Body

It has been said on some site (I don't remember which, but I know I saw it) that making characters blink is impossible. I've found out that is far from the truth, in fact, it's very possible and can help add realism to the game.

Things you need to know:
Variables.
Switches.
Forks.
Enter Password Command.
Ability to modify character graphics.

You will need:
Four switches (Facing Down, Left, Right, and Up)
A variable that is based from the Enter Password command.
Forks that are based on the switches.
A hero graphic and a blinking hero graphic.

The following code is directly from a demo of this that I did. If you want it, you can get it at the end of the tutorial, I want you to go through this first.

First, make a new map. Go into Idraw or whatever to edit .PNG images. Copy the picture of any hero (all 4 directions, 3 each) to the area either under or next to the selection (I used next to). Save as a 256 color PNG image.

Now, make an event on the map using the following:
Event start: Parallel process

Note: The switches are activated based on what direction the character is facing. We do not need to blink when moving up.

Wait: 5.0 sec (This causes it to wait 5 seconds)

If Switch [0003: Facing Down] is ON
Move Event: Hero-Change Graphic (to the down-facing blinking animation)
Wait: 1.0 sec (He will blink for 1 second)
Move Event: Hero-Change Graphic (to the down-facing regular animation)
Change Switch var[0003: Facing Down] switch OFF

End Case

If Switch [0004: Facing Left] is ON
Move Event: Hero-FaceLeft-Change Graphic (blinking animation, facing left)
Wait: 1.0 sec (He will blink for 1 second)
Move Event: Hero-FaceLeft-Change Graphic (to the regular animation)
Change Switch var[0004: Facing Left] switch OFF

End Case

If Switch [0005: Facing Right] is ON
Move Event: Hero-FaceRight-Change Graphic (blinking animation, facing right)
Wait: 1.0 sec (He will blink for 1 second)
Move Event: Hero-FaceRight-Change Graphic (to the regular animation)
Change Switch var[0005: Facing Right] switch OFF

End Case

If Switch [0006: Facing Up] is ON
Note: "Do nothing, no blinking necessary now"
Change Switch var[0006: Facing Up] switch OFF

That completes the first event here.

Now, for the second event...
A variable called "Direction Face" will store the value of Enter Password- 1 is a down movement, 2 is left, 3 is right, and 4 is down. (And there are 2 other values- 5 is esc key, and 6 is enter)

Wait 0.0 sec (Standard for Parallel Processes)
Enter Password: Var[0001: Direction Face]

If Var[0001: Direction Face]= 1
Change Switch: Var[0003: Facing Down] Switch ON
Change Switch: Var[0004: Facing Left] Switch OFF
Change Switch: Var[0005: Facing Right] Switch OFF
Change Switch: Var[0006: Facing Up] Switch OFF
Wait 0.0 sec
End Case

If Var[0001: Direction Face]= 2
Change Switch: Var[0003: Facing Down] Switch OFF
Change Switch: Var[0004: Facing Left] Switch ON
Change Switch: Var[0005: Facing Right] Switch OFF
Change Switch: Var[0006: Facing Up] Switch OFF
Wait 0.0 sec
End Case

If Var[0001: Direction Face]= 3
Change Switch: Var[0003: Facing Down] Switch OFF
Change Switch: Var[0004: Facing Left] Switch OFF
Change Switch: Var[0005: Facing Right] Switch ON
Change Switch: Var[0006: Facing Up] Switch OFF
Wait 0.0 sec
End Case

If Var[0001: Direction Face]= 4
Change Switch: Var[0003: Facing Down] Switch OFF
Change Switch: Var[0004: Facing Left] Switch OFF
Change Switch: Var[0005: Facing Right] Switch OFF
Change Switch: Var[0006: Facing Up] Switch ON
Wait 0.0 sec
End Case

Seriously, especially when following the above code, this isn't too hard to pull off with one character. For extra characters, more forks will be needed to determine who is leading the party, etc. There are other things that can be done besides blinking. Feel free to experiment! If you want to see the whole demo of this, email me at Video1wiz@aol.com or post below your interest.