The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Zeriab on June 20, 2007, 05:28:52 PM

Title: WASD movement system
Post by: Zeriab on June 20, 2007, 05:28:52 PM
I was bored, so here is a quick and dirty WASD movement system made with events

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg113.imageshack.us%2Fimg113%2F7226%2Fforwardbackwordjs8.png&hash=c1236a6243a5c3bb7e4be0502092250a0aa090f7)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg520.imageshack.us%2Fimg520%2F6974%2Fleftrightfc3.png&hash=0879ddf06b8a47b732e2f5bff4d0a6712ba9c9de)

- Zeriab
Title: Re: WASD strafing system
Post by: Kokowam on June 20, 2007, 05:39:24 PM
YAY! A ZERIAB TUTORIAL! Just make some on scripting, pretty please? XD I'm going to try this out... But is it possible to have this replace the Up,Down,Left,Right instead?
Title: Re: WASD strafing system
Post by: Zeriab on June 20, 2007, 06:21:32 PM
Sure, you should have no trouble changing this to up, down, left, right.

Just change the conditional branches which checks for key pressed

R = UP
Y = DOWN

X = LEFT
Z = RIGHT



btw... If I were to make another tut on scripting the level would probably be about the same as with my RegExp tut ^_^
Title: Re: WASD strafing system
Post by: Kokowam on June 20, 2007, 07:09:08 PM
C'mon! It's too hard... T_T Also, I haven't tried it out, but would the directional things override the event or vice versa?
Title: Re: WASD movement system
Post by: Zeriab on June 20, 2007, 09:23:07 PM
Not if you have one of the systems on Autorun. If you put both triggers to Parallel Process, then yes.
In fact, if you set both to parallel without changing the event otherwise you will have to ways of movement and you can let the player decide which to choose.
Title: Re: WASD movement system
Post by: Kokowam on June 20, 2007, 09:31:40 PM
Autostart. o.o But... are you able to... you know... talk to NPC's and do things normally? Also, do parallel processes work during autostart events?
Title: Re: WASD movement system
Post by: Zeriab on June 21, 2007, 06:30:25 AM
I have just tested an you can't talk to NPC's like normally.
Parallel processes does however work.
Title: Re: WASD movement system
Post by: Kokowam on June 21, 2007, 12:12:58 PM
So basically to talk to NPCs you have to make parallel processes that check if you're at a certain spot, facing a certain way, and pressing a certain button? XD Is there any possible way to change it like changing the default scripts or something?
Title: Re: WASD movement system
Post by: Zeriab on June 21, 2007, 03:57:04 PM
No no no...
If you set the two events on parallel processing you can speak with people just fine.
Making it so that you talk to NPCs with the Autostart solution is a bit more tricky because just triggering and starting the event is not enough.
If you manage to do that it'll wait until the Autostart is over before getting interpreted.
Any scripts that changes this will more than likely bring great compatibility issues with it.