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! :)
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.
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.
I guess you're right and thank you. I will start posting some detailed instructions and what each command does next time.
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
That was what I meant. ^_^
oh, :P didnt know.