ID:1682779
 
Keywords: run, walk
Code:


Problem description:

Hello guys , i'm starting programing for byond , and i would like to know... I did the main actions for my character , and he punch , kick , walk but i want to make he run pressing the same button as the walk button , but when he can run(var/canrun) he run , but when he cant he walk(var/canrun=0)
how do i change this events??
I was looking for this and I saw in macros : .south and then i change the command .south to WalkDown , but i dont know how to make him walk down , i tried y+=1 but i didnt worked , he dont look down =O please help
Do you have your own interface file? Makes working with macros a lot easier.
Yeeah , i got it thank you!! really!!