Advertisement
Purianite

Untitled

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