Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(speed>4){
- if(!sprint and walk)
- {sprint=true; sound_loop(RunSnd); sound_stop (StepSnd);}}
- else {if(speed=4)
- if(!walk and !sprint){
- walk=true; sound_loop(StepSnd);sprint=false; sound_stop(RunSnd);}}
- if(!hurt)
- hurt=true; sound_play(HurtSnd) sound_stop(SwdSnd) sound_stop(HitSnd);
- pushback = 30
- x += lengthdir_x(pushback,point_direction(x,y,other.x,
- other.y)+180);
- y += lengthdir_y(pushback,point_direction(x,y,other.x,
- other.y)+180);
Add Comment
Please, Sign In to add comment