[XP] 8 Way Movement

Started by G_G, February 20, 2010, 01:58:59 pm

Previous topic - Next topic

G_G

8 Way Movement
Version: 1.0
Type: Movement System



Introduction

Tired of the plain boring 4 way movement? Well now you won't have to. This simple event system allows you to move in 8 different directions.


Features


  • Move in 8 Different Directions
  • Requires 1 Common Event and 1 switch for the common event



Screenshots

N/A


Demo

MediaFire


Instructions

Go into your common events. Create a new one called 8 Way Movement. Set it to a Parallel Process. Set the switch to whatever one you want. Call the switch 8 Way.
Next we're going to make two conditional branches. First conditional branch go to the 4th page, choose button, and choose Up. Uncheck the set handling condtions box.
Now we're going to create the same branch except this time we'll change button Up to button Down. Here's how it should look so far.
Spoiler: ShowHide

Next we're going to create two branches in each of those branches. Confusing much? Okay so in the Up condition the first condition we're going to make is to check to see if the Left button is being pressed. So 4th page, button, Left. Keep the Set handling conditions checked. Now in the else area, we'll do the same branch except change left to right. This one you can uncheck set handling conditions. We're going to do the same thing for the Down branch. In the end it should look like this.
Spoiler: ShowHide

All thats left is to set the movements. Go into the Up condition and the Left condition. Now add a Set Move Route, set it to player, and check ignore if can't move. Then add a Move Upper Left. Add another Set Move Route under the Up and Right branch. Set it to player, check ignore if can't move, and add a Move Upper Right. We're going to do the same thing to the down branch. Just change move upper right and left to move lower right and left. Here's how it should be when we're all done.
Spoiler: ShowHide


Now just the 8 Way switch on to turn on the common event and it should work. Also turn off 8 Way during cutscenes and stuff.


Credits and Thanks


  • game_guy ~ for making it



Author's Notes

Enjoy!

Alton Wyte

It's much simpler to simply edit the script, but good job anyways.

G_G

I know its a lot easier to just edit a script. In fact I've done it before. Event systems are made to prove that scripts aren't needed. This was proving the simple point a script isn't needed for 8 way movement.

Spaceman McConaughey

Nice. I like. Will consider using.

Caligatio

Wow, great script! I love it, and I'm sure to use it!  8)

winkio

What happens if you hold Up, Down, and left at the same time?  ( you need more else)

G_G

Quote from: Arceus on March 17, 2010, 03:26:57 pm
What happens if you hold Up, Down, and left at the same time?  ( you need more else)


I'll try to find an easy fix. I'll look at it later.