Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Make gibs
- for (i = 0; i < size*5; i += 1)
- {
- inst = instance_create(x,y,obj_enemy1_gib);
- inst.image_index = i;
- if grab = 0
- {
- inst.vspeed = -4; //used for physics, take out if you don't like it
- inst.hspeed = burstspeed;
- burstspeed += (abs(gibspeed)-1)/2;
- }
- if grab = 1
- {
- inst.throwable = 1;
- inst.throwid = obj_player.ammosub+i;
- obj_player.ammosub += 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement