Gw Temp

Menu

Tutorial - 'Perfect Running System' by dragonheartman

An item about RPGMaker 2000 posted on

Blurb

dragonheartman finally shows us how to make the PERFECT running system.

Body

Ever wanted to make a running system in which you tapped the cancel key to open the menu and holding the cancel key enables running? Well this simple tutorial will show you how. I’ve found NO errors with this running system (No accidental permanent speed ups/ slow downs, ect.) and the results are superb. Anyway, on with the tutorial.

Open up the database, make a new common event set to parallel process. The coding for the running system should go like this.

1. Enter password (Only the 6 key, do not wait until key hit). Store into var name "Run Key"- This checks to see if you are hitting cancel
2. Fork condition. If var. "Run Key" is equal to 6
3. Wait .2 Seconds
4. Enter password (Only the 6 key, do not wait until key hit). Store into var name "Run Key" (add ELSE case)
5. Fork condition. If var. Run Key is equal to 6 -These double forks/enter password actually determine if you are tapping or holding escape.
6. Call Common Event: Set to Running Speed* -Increases speed. See note. (You can enter a graphic change here)
7. Cycle
8. Wait 0.0 seconds - Lag killer
9. Enter password (Only the 6 key, do not wait until key hit). Store into var name "Run Key"
10. Fork condition. If var. "Run Key" is equal to 0
11.Call Common Event: Set to walking speed* - Decreases speed. See note. (You can resume graphic here as well)
12. Break Cycle
END CASE
< >
END CYCLE
< >
ELSE CASE:(To fork on step number 5)
13. Call Menu - if key was tapped.
END CASE
< >
END CASE

* "Set to running speed" common event’s coding needs to be another common event (Duh) With the following line of code:
< >Move event: Hero; Spd. Down, Spd. Down, Spd. Down, Spd. Up, Spd. Up, Spd. Up

"Set to walking speed" common event’s coding needs to be another common event with the following line of code:
< >Move event: Hero; Spd. Down, Spd. Down, Spd. Down, Spd. Up, Spd. Up

Those common events to call prevents all problems one would usually get with the standard "Move speed up" and "Move speed down" command. The common events physically SET the hero’s speed to Running or Walking, thus removing most common problems.

That’s it, The perfect running system. Pretty easy, huh? ^_^
-dragonheartman