Advertisement
Purianite

Untitled

Oct 29th, 2011
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enemy_destroy();
  2. if x > -28 && x < 668 && y > -28 && y < 388
  3. {
  4.     //Make gibs
  5.     for (i = 0; i < size*5; i += 1)
  6.     {
  7.         inst = instance_create(x,y,obj_enemy1_gib);
  8.         inst.image_index = i;
  9.         if grab = 0
  10.         {
  11.             inst.vspeed = -4;               //used for physics, take out if you don't like it
  12.             inst.hspeed = burstspeed;
  13.             burstspeed += (abs(gibspeed)-1)/2;
  14.         }
  15.         if grab = 1
  16.         {
  17.             inst.throwable = 1;
  18.             inst.throwid = obj_player.ammosub+i;
  19.             obj_player.ammosub += 1;
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement