Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //asteroid collision with shot script
  2.  
  3. with(other)
  4. {
  5.     //this destroys other (the shot that hit this asteroid)
  6.     instance_destroy();
  7. }
  8.  
  9. score += 10;
  10.  
  11. spawn_asteroid(size-1, scale/2, random(360));
  12. spawn_asteroid(size-1, scale/2, random(360));
  13.  
  14. //if you need to destroy the base object, do it outside the } like this
  15. instance_destroy(); // destroys the asteroid itself.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement