Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(amount < 12){
  2.    
  3.         var pos1 = x - 56;
  4.         var pos2 = y - 56;
  5.    
  6.         for(i = 0; i < 4; i++){ //create the columns
  7.             for(j = 0; j < 3; j++){ //create the rows (a 3x4 rectangle in total)
  8.                 amount += 1;
  9.                 shapesRemaining += 1;
  10.                 myShape[amount] = instance_create_layer(pos1 + (56 * j),pos2 + (56 * i),layer,oShapePart);
  11.                 myShape[amount].creator = id;
  12.                 part_particles_create(global.systemMain,myShape[amount].x,myShape[amount].y,global.shapeSpawn,5);
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement