Chaos Project

RPG Maker => Event Systems => Topic started by: G_G on August 13, 2008, 04:47:34 pm

Title: Hold Shift to Run
Post by: G_G on August 13, 2008, 04:47:34 pm
Ok this was an easy tutorial and thoughtI'd share it. On the Map or in Common events make the event parallel and enter this

Loop
Label 1
Wait 1 Frame
Branch if A Button is Held
Branch if Var[xxxx:Run] = 0
   Move Event Player:Set Speed 5
   VarOper:[xxxx:Run] set = 0
   Jump to Label 1
  Else
   Jump to Label 1
End
Else
Branch if Var[xxxx:Run] = 1
   Move Event Player:Set Speed 4
   VarOper[xxxx:Run] set = 0
   Jump to Label 1
Else
   Jump to Label 1
End
End

I don't know if alot of you know this but I decided to post anyways as my first post! :)
Title: Re: Hold Shift to Run
Post by: DeathLock on August 13, 2008, 05:02:49 pm
This isn't much of a tutorial, if you just post a the event code instead of instructions.

But, its too simple. Oh well, welcome to forum.
Title: Re: Hold Shift to Run
Post by: Blizzard on August 13, 2008, 05:05:42 pm
Nice. But I suggest that you avoid using the loop command in a parallel process since parallel process already gets executed over and over. This code would work better. :)

Branch if A Button is Held
  Move Event Player:Set Speed 5
Else
  Move Event Player:Set Speed 4
End


Of course this should be disabled when making cutscenes where the player speed is changed.
Title: Re: Hold Shift to Run
Post by: G_G on August 13, 2008, 05:06:17 pm
I guess you're right and thank you. I will start posting some detailed instructions and what each command does next time.
Title: Re: Hold Shift to Run
Post by: Sally on August 15, 2008, 09:53:57 am
Quote from: Blizzard on August 13, 2008, 05:05:42 pm
Of course this should be disabled when making cutscenes where the player speed is changed.


just put that code in common events and during cutscenes take the switch off. then put it back on after :P
Title: Re: Hold Shift to Run
Post by: Blizzard on August 15, 2008, 10:25:42 am
That was what I meant. ^_^
Title: Re: Hold Shift to Run
Post by: Sally on August 15, 2008, 08:38:04 pm
oh, :P didnt know.