RPG Maker 2003

RPG Maker 2003

81 ratings
Press Button To Run + Step Sounds
By Tay 台風
In this guide you will learn how to build a "press to run" event , which will make your character run while you are pressing the chosen button. In addition you will learn how to make step sounds synchronized to your character's steps.
   
Award
Favorite
Favorited
Unfavorite
First Words:
Hello there, that's my first Steam Guide ever, so please don't be too hard on me.
I'll try to explain everything as well as possible. I hope my english will be understandable for you guys, if there are any questions just ask straight away.
I'll will try to help as much as possible.

You will be guided through 4 sections:
1. Step Sounds
2. Run System
3. Run
4. Walk


IMPORTANT SIDE NOTE !
In this guide i won't explain the basics of the Rpg Maker 2003, thus make sure you already have basic understandings of such things like "Common Events" , "Variables" , "Switches" , "Triggers" ,
"Conditional Branch" and etc.
Let's get started !
All you want to do is making an event , which enables your character to run by pressing a button and walk by releasing the button. You also want to make this event work independent of your current location on the map. To achieve this goal you have to use "Common Events" .
Just select the marked areas shown in the following picture step by step.


You can give your Common Events(Switches and/or Variables) any name you want, their name doesn't affect the commands. I used these names as examples to make it clear.

Step Sounds
With these instructions, you will make it possible to create different kind of step sounds depending on which kind of floor your character will step on.

In the following i will post some pictures of an example script which you can understand by reading the lines carefully and where you can change some values (or switches or what ever) to adjust your taste or wish for the script.

For this Common Event "Step Sound" all you need are 6 Variables and 1 Switch.
The Key Command should look like this:



It's important for you to make sure that "Trigger" is on "Parallel Process" and the box is checked with the "Switch: Step Sound"
Just use these commands as in the picture:




Short explanation:
All what happens here is you are assigning the characters coordinates to some variables and save them and you also get the Terrain ID which are going to be checked in the conditional branch to play the appropriated sound you have chosen.
In the end of the lines the maker checks if the character is standing on his/her current location. If this is the case another play of sound will be disabled so you won't hear a step when your character is standing

Set Terrain ID:
Here you can set your own Terrain ID of every map you want.
By setting a Terrain ID your common event will automatically work on the appropriated floor your character will step on. For this reason adjust the values of your "Terrain" Variable to the current set Terrain ID.

Run System
This Common Event is the main event which determines if your character is walking or running.
Choose "Parallel Process" as "Trigger"
The Key Command should look like this a bit different than last time, you can even choose which buttons you want to press for toggling your character to run, in this example we take "Shift" Button.



Now all left is only a "Conditional Branch" with an "Else"- Case . This is the part where your event checks whether the "Shift" button is pressed or not. If this is the case we will call the event "Run" where the speed of your character will adjust, same counts for the "Else"-case where your characters speed will get the "Walk" Speed. The Variable "LoseStamina" will determine how long you will be able to run, you will understand this by reading the lines of the "Common Event" "Run" and "Walk". Like i said before you can experiment with the values to find your personal "Stamina" or "Walk/Run-Speed". It is also important that you don't use any "Switches" in this Common Event.

Run
This "Common Event" seems to be the most complicated one but don't let you confuse yourself by the number of the lines since these are just an example and can be adjusted to your needs.

This time it's important that you don't take/use any "Trigger" , because this event gets called in the "Run System" Common Event already (same for the "Walk" Common Event, but further more later).
Most important part is probably the "move route". I recommend to use 6x "Speed Down" and then 3x "Speed Up" for the last line in the "Else"-Case in the command "Set Move Route", also don't forget to select in this command for "Player".


The first "Conditional Branch" checks the number of our Variable "LoseStamina" which is permanently increasing while we press "Shift" Button and permanently decreasing while we don't press "Shift" Button (look at "Run System" Section). If the number is higher than 900 ( this here is an example, number can be determined by yourself ) , then your character gets the "Walk" Speed by the command "Set Move Route" 4x "Speed Down" 2x "Speed Up".

Every line in this Conditional Branch what comes after is just a custom setting, like flashing the screen and hearing the sound of a heartbeat ( so the player understands that your character is out of stamina , otherwise he/she only sees that his/her character doesn't run anymore).

The value of the "LoseStamina" variable MUST set to "0" again, if not your character will only run once

The second "Conditional Branch" in line 2 is optional ( and just an example):
If you are using "cut scenes" and you have run out of stamina before your cut scene starts, it is recommended to "neutralize" the speed of your character by setting it back to his/her "Walk" Speed , in order to avoid a mess with player speed .
Walk
In this "Common Event" your player's speed is set back to the usual "Walk" Speed.
For this purpose use "Set Move Route " 4x "Speed Down" and 2x "Speed Up". (Recommended)
Don't forget to use "Conditional Branch" , where your Variable "LoseStamina" is set to the value "0".
If the value goes far below zero (since in the "Run System" Section the value gets subtracted by the value "1" constantly while you don't press "Shift" Button), it gets set to "0" again , so you don't have to wait a long time until your character runs when you press "Shift" Button again.

Don't forget
This guide is supposed to give you the general idea of using the right commands to make "Press to Run" and "Hear Step Sounds" Events.

All names or values ( or anything additional which isn't needed for the general use) can be determined by yourself. This guide just gave some examples how to make these opportunities possible.
I hope it was helpful for you and i hope i haven't done many mistakes (whether in grammar or from the technical aspect).

Please don't forget to rate , comment , share and support , i would be very thankful for this act.

This guide will be updated when i recognize some mistakes.

Guide made by : Tay 台風 (27.04.2015)

19 Comments
ozzycrazy74 2 Jan, 2024 @ 12:30pm 
WHERE DID YOU GET THE SE STEP!?
Sharkbilby 12 Jan, 2023 @ 3:10pm 
this is why common events scare me
Metal Mutton 10 Jul, 2021 @ 10:01pm 
For anyone reading this in 2021: I tried using this. It works in a single map, but for some reason it prevents transferring the player from map to map?

So here's what I did: I tweaked the Run() and Walk() common commands so that the move events only execute when needed. This seems to allow for running without preventing map transfers.

In my case, I put each command within a conditional branch so that they would only execute if the switch PlayerRun is set to specific value: OFF for Run() and ON for Walk(). Both commands toggle the PlayerRun switch.
Aërendoodle 5 Mar, 2018 @ 7:19am 
Why make footstep sounds with lots of eventing when you can just set a footstep sound in the Terrain editor?
liamsvegeta 19 Nov, 2017 @ 7:36pm 
could someone make a demo of this so I can see it all for myself in the comment events menu.
Tay 台風  [author] 10 Apr, 2017 @ 5:29am 
sure thing
crea 10 Apr, 2017 @ 5:26am 
hummm can i send u a pic later? so u see if u can make it similar
Tay 台風  [author] 10 Apr, 2017 @ 5:25am 
good idea, but it takes a lot of time to do that depending on how you want to make it
crea 10 Apr, 2017 @ 5:21am 
Make how to change the menu style, i really need that help q-q ples senpai q-q
Tay 台風  [author] 26 Mar, 2017 @ 11:14am 
haha alright xD