Dash and Horse Event Systems
Introduction:
This is my first tutorial... XD
I’m going to show you how to make your character run, mount and dismount a horse, and make the horse run by button.
Requirements:
A sprite of your character riding a horse [Tana’s horses are very popular]
*Optional and Recommended*
A sprite of your character running
A sprite of your character riding a galloping horse [again, Tana’s horse is good]
Notes:
To alter/toggle switches and variables, you would use “Control Switches†on page one of the event command window.
Conditional Branch is also found on page one of the event command window.
Common Events can be found through Tools>Database [or F9] under the Common Events tab.
Tana’s horses can be found at her site http://www.alisachristopher.us/rmxp/
Making the dash system
• Make a common event called “Dashâ€. Make its trigger a parallel process with condition switch 001 which will be named “dash available.â€
• Make a conditional branch that the X button [A on the keyboard] is being pressed; make sure you check the “Set handling options when conditions do not apply†option.
• If you have a sprite of your character running, use the “Change Actor Graphic†event command on page 3 and select your graphic. You don’t have to select a battler.
• Using the “Set Move Route†event command on page 3, select “Change Speed†in the move route window and select speed 5: Faster.
• For the “else†of your conditional branch:
• Now, to be able to dash, you have to have condition switch 001 ON [dash available]. Make an auto run event on the map. Enter the command to turn your switch ON. Use the “Erase Event†command on page one of the event command window in order to prevent jamming. It should look like this:
• Test it out and enjoy!
Making the Horse System
This is unsuprisingly similar to making a dash system. Since you know how to do that now, it should be quicker.
• Make a common event called “Mount Horseâ€. Make its trigger a parallel process with condition switch 002 which will be named “Have Horse.â€
[You may have to change the maximum number of common events]
• Make a conditional branch that the Y button [S on the keyboard] is being pressed.
Do NOT select the “set handling when conditions do not apply†option.
• Make a sub-conditional branch for when switch 003 [name it On Horse] is off.
Use the “set handling when conditions do not apply†option this time.
• Under this conditional branch:
• To be able to ride the horse the “Have Horse†switch [002] ON. You can just add the toggle command in your auto run map event that turns on the dash. Make sure it’s before “erase event.â€
Galloping
Now we’ll go back and edit your Dash common event.
• Under the “if X button is pressed†conditional branch, make a sub conditional branch for when the On Horse switch is on. Put the graphic and speed changes for changing the normal sprite to a dashing sprite in this sub-branch’s else handler. For when the sub-branch’s conditions are met:
Anyway, that’s all I have to teach for now. I hope it’s helped someone!
Introduction:
This is my first tutorial... XD
I’m going to show you how to make your character run, mount and dismount a horse, and make the horse run by button.
Requirements:
A sprite of your character riding a horse [Tana’s horses are very popular]
*Optional and Recommended*
A sprite of your character running
A sprite of your character riding a galloping horse [again, Tana’s horse is good]
Notes:
To alter/toggle switches and variables, you would use “Control Switches†on page one of the event command window.
Conditional Branch is also found on page one of the event command window.
Common Events can be found through Tools>Database [or F9] under the Common Events tab.
Tana’s horses can be found at her site http://www.alisachristopher.us/rmxp/
Making the dash system
• Make a common event called “Dashâ€. Make its trigger a parallel process with condition switch 001 which will be named “dash available.â€
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/MakecommoneventDash.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/conditionalbranchXispressed.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/changeactorgraphic.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/SetMoveRoute.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/Changespeed.png[/IMG]
o Use change actor graphic to return to your default sprite if you changed it.
o Use the set move route command and change the speed to 3: Slow.
• Your event should look like this:o Use the set move route command and change the speed to 3: Slow.
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/DashEventFinished.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/turndashon.png[/IMG]
Making the Horse System
This is unsuprisingly similar to making a dash system. Since you know how to do that now, it should be quicker.
• Make a common event called “Mount Horseâ€. Make its trigger a parallel process with condition switch 002 which will be named “Have Horse.â€
[You may have to change the maximum number of common events]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/MakecommoneventMountHorse.png[/IMG]
Do NOT select the “set handling when conditions do not apply†option.
• Make a sub-conditional branch for when switch 003 [name it On Horse] is off.
Use the “set handling when conditions do not apply†option this time.
• Under this conditional branch:
o Use the change actor graphic command and select the sprite of your character on a horse.
o Use the set move route and change speed commands and set the speed to 4: Fast. [Obviously riding a horse is faster than walking right?]
o Turn on switch 003 and name it “On Horseâ€
o Using the “wait†command found on page one of the event command window, wait for 20 frames. This prevents the character from flickering between sprite poses.
o [Credit and Thanks for this tip to Icarus Featherfight]
• Under this conditional branch’s else handler:
o Use the change actor graphic command and select your character’s normal sprite.
o Use the set move route and change speed commands and set the speed to 3: Slow.
o Turn off the “On Horse†switch
o Wait for 20 frames
• It will look like this:o Use the set move route and change speed commands and set the speed to 4: Fast. [Obviously riding a horse is faster than walking right?]
o Turn on switch 003 and name it “On Horseâ€
o Using the “wait†command found on page one of the event command window, wait for 20 frames. This prevents the character from flickering between sprite poses.
o [Credit and Thanks for this tip to Icarus Featherfight]
• Under this conditional branch’s else handler:
o Use the change actor graphic command and select your character’s normal sprite.
o Use the set move route and change speed commands and set the speed to 3: Slow.
o Turn off the “On Horse†switch
o Wait for 20 frames
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/MountEventFinished.png[/IMG]
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/AutoRunfinished.png[/IMG]
Galloping
Now we’ll go back and edit your Dash common event.
• Under the “if X button is pressed†conditional branch, make a sub conditional branch for when the On Horse switch is on. Put the graphic and speed changes for changing the normal sprite to a dashing sprite in this sub-branch’s else handler. For when the sub-branch’s conditions are met:
o Change the actor graphic to your galloping sprite [if you have one]
o Change the speed to 6: Fastest
• Make another sub-branch under the else handler of the X button is pressed condition. The sub-branch’s condition will be that On Horse is on. Put the graphic and speed changes for returning the dashing sprite to normal in this sub-branch’s else handler. . For when this sub-branch’s conditions are met:o Change the speed to 6: Fastest
o Change the actor graphic to your sprite of the character riding a horse at normal speed [if you used another sprite]
o Change the speed to 4: Fast
• Your Dash common event should now look like this:o Change the speed to 4: Fast
http://i78.photobucket.com/albums/j92/chastity_belted/tut%20pics/DashandGallopfinished.png[/IMG]
Anyway, that’s all I have to teach for now. I hope it’s helped someone!