Advertisement
ShiroX

Untitled

Oct 16th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /* Speed */
  2. x -= 0.25;
  3.  
  4. /* Attack */
  5. if ( instance_exists(par_player) )
  6. {
  7.  
  8. if( attack != 5 )
  9. {
  10. if( abs(par_player.x - x) < 120 )
  11. {
  12. if( timer != 0 )
  13. {
  14. timer -= 1;
  15. };
  16. else if( timer = 0 )
  17. {
  18. //if ( my_projectile[attack].y > 529 && my_projectile[attack].y < 530 )
  19. if ( my_projectile[attack].y > y && my_projectile[attack].x < x )
  20. {
  21. with( my_projectile[attack] ) { attack = true }
  22. timer = 120;
  23. attack += 1;
  24. };
  25. };
  26. };
  27. };
  28.  
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement