The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Ran Master on May 12, 2007, 10:01:01 PM

Title: [Requesting] Walk/Run System Tutorial (RM2K3)
Post by: Ran Master on May 12, 2007, 10:01:01 PM
Pretty new to these forums but, I'm in need of a tutorial for a running and walking system.

For Rpg Maker 2003
A system where, for example when I hold down the Confirm Key, and begin moving, the character runs, and when I release the confirm key, the character stops running and begins to walk again.

If you played "DragonHeart" from Dragonheartman. Thats kinda what I'm looking for, I know it's possible, I just can't get the events to run correctly.

Also, Please dont give any useless information... :-\

Ran Master
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: xeph on May 12, 2007, 10:32:31 PM
Simple Make 2 parelel proscess events at the corner of your map
In the first one Maker and enter password make it a key( make sure
its not the same as the the other event
Now make it Move event hero Speed up, speed up
Now its faster!!!
Now go to the other event Make a enter password
( not same as last one) Then move event hero speed up,speed up
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: Kokowam on May 12, 2007, 10:34:00 PM
Make a common event. Make it so that (conditional branch) when you press a button, you set the speed to something faster. For "else," put normal speed. That's how it's done in RMXP and it should be the same in RM2k3, right?
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: xeph on May 12, 2007, 10:41:13 PM
Well The Code is diffrent in 2k3 then
xp And yours dosnt work.. you have to make a
parelel process to call that event ...
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: Kokowam on May 12, 2007, 10:45:57 PM
Yeah, parallel process and work it with a switch that you can turn on in the beginning or whenever you like.
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: xeph on May 12, 2007, 10:50:58 PM
Yeah you didnt describe the parelel process
to turn on the swicth or any other way
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: Ran Master on May 13, 2007, 06:16:43 AM
Ugh, I tried to comprehend your post, but maybe I'm not getting it.

You might have to provide a demo or something, cus I can't get it to work.

Or provide easy english step by step directions... :-[

Ran Master
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: Ran Master on May 14, 2007, 06:50:48 AM
One bump,
Anyone? I know we have people that can do it, people that has done it.

Is Walk and Run System is really that hard?
Title: Re: Walk/Run System Tutorial [Requesting] (RM2K3)
Post by: xeph on May 14, 2007, 02:33:16 PM
Oh sorry making one...
Title: Re: [Requesting] Walk/Run System Tutorial (RM2K3)
Post by: kid27 on May 16, 2007, 08:28:40 PM
Lol, no it is not.
First of all make a Parrallel Process event.
Then put a Label 1.
Next, create a Cycle.
Inside that cycle put an Enter Password event for the Enter key - uncheck Wait.
Then put a Fork Condition in, checking if the variable is equal to 5 (or the value you checked for).
If so, make the hero get faster (Move Speed Up) - only by one, otherwise it looks weird.
You can also add a change graphic event.
Still in the Fork Condition, put a Goto Label 2 event.
Now, have a Label 2.
Then create another Cycle.
Put an identical Enter Password event as before.
Using a Forck Condition, check if the variable is NOT equal to 5 (a.k.a equal to 0)).
If that is true, make the hero slow down (and change graphic back if you done this earlier).
Then have it go back to Label 1.

Basically it looks like this: (not exactly like this, I'm writing it off my head)

Label 1
CYCLE
Enter Password [0001:Sprinting]
IF [0001:Sprinting]=5
  Move event (hero): [Move speed up, change graphic]
  Move all <<-- This is quite important, the game can sometimes look weird without it!!
  Goto Label 2
END
END CYCLE
Label 2
CYCLE
Enter Password [0001:Sprinting]
IF [0001:Sprinting]=0
  Move event (hero): [Move speed down, change graphic]
  Move all
  Goto Label 1
END
END CYCLE

Oh.
Don't forget somebody to put a [Resolved] tag on this.
That is, if my solution resolves this problem.
I hope it helped you out.
A warning though: this can lag the game if there are a lot of events in one map.
Also, you should probably only have this going if a switch is on, which you can control during the game.
Otherwise, the hero may be running around during a cutscene if the player is holding down ENTER.
Then everything will be out of time and weird.

~kid27, out.
Title: Re: [Requesting] Walk/Run System Tutorial (RM2K3)
Post by: xeph on May 16, 2007, 11:02:19 PM
 :)I think you should put that in a commen event tried it
i think its better as a commen event
Title: Re: [Requesting] Walk/Run System Tutorial (RM2K3)
Post by: Ran Master on May 17, 2007, 12:23:16 AM
I thank you for the basic run/walk system.

It works but, It doesn't really work. After I pressed the "run" key, and picked a direction to run in, I released the "run" key, while still moving in the same direction, I end up still running while not even holding it down, only until I change directions, It would start to "walk" again.

I messed around with the events, trying to make it change from run to walk when I release the "run" key, while still moving, but there has been no Success. Theres still lots of little things that are screwed.

Anyone have a running system like this?
Title: Re: [Requesting] Walk/Run System Tutorial (RM2K3)
Post by: xeph on May 17, 2007, 04:27:52 AM
how bout set a timer and only press it once? and press diffrent key to stop