Guest User

Untitled

a guest
Jan 5th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. if(speed>4){
  3. if(!sprint and walk)
  4. {sprint=true; sound_loop(RunSnd); sound_stop (StepSnd);}}
  5. else {if(speed=4)
  6. if(!walk and !sprint){
  7. walk=true; sound_loop(StepSnd);sprint=false; sound_stop(RunSnd);}}
  8.  
  9.  
  10. if(!hurt)
  11. hurt=true; sound_play(HurtSnd) sound_stop(SwdSnd) sound_stop(HitSnd);
  12. pushback = 30
  13. x += lengthdir_x(pushback,point_direction(x,y,other.x,
  14. other.y)+180);
  15. y += lengthdir_y(pushback,point_direction(x,y,other.x,
  16. other.y)+180);
Add Comment
Please, Sign In to add comment