Advertisement
Guest User

Untitled

a guest
May 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. x+=hspd
  2. y+=vspd
  3. if(facing=1)
  4. {targethit = instance_place(x+1,y,floor)}
  5. else
  6. {targethit = instance_place(x-1,y,floor)}
  7.  
  8. if (targethit!=noone)
  9. {hspd=0;
  10. vspd=0}
  11. else if (targethit==noone)&&(fwd>0)
  12. {if facing=1
  13. {hspd=9}
  14. else
  15. {hspd=-9}
  16. vspd=0}
  17.  
  18. targethat = instance_place(x,y-4,floor)
  19. if (targethat==noone)&&(fwd!=0)
  20. {hspd=0;
  21. vspd=0}
  22. else
  23. if (targethat==noone)&&(fwd==0)
  24. {instance_destroy()}
  25.  
  26.  
  27. if (hspd!=0)
  28. {fwd-=1}
  29. if (vspd!=0)
  30. {instance_destroy()}
  31.  
  32. if (fwd==0)
  33. {hspd=0}
  34. if (tolerance==0)
  35. {}
  36. if (stala==1)
  37. {sound_stop (Snd_Hlf_Chrg_Shot)
  38. sound_play (Snd_Hlf_Chrg_Shot)
  39. instance_create(x,y-10,FlameBlast)
  40. instance_destroy()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement