Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. local pCurrentShapeCounter = 1  
  2.    
  3.     for i = 1, levelPacks[prevCurrentLevelPack][prevCurrentLevel].ammount do
  4.  
  5.         if pCurrentShapeCounter == 1 then
  6.            
  7.             shapesPrevArray[pCurrentShapeCounter].x = 0
  8.            
  9.         end
  10.  
  11.         if pCurrentShapeCounter > 1 then
  12.  
  13.             shapesPrevArray[pCurrentShapeCounter].x = shapesPrevArray[pCurrentShapeCounter -1].x + shapesPrevArray[pCurrentShapeCounter- 1].width  
  14.  
  15.          end
  16.  
  17.         shapesPrevArray[pCurrentShapeCounter].y = 41
  18.  
  19.         shapesPrevArray[pCurrentShapeCounter].isVisible = true
  20.         pCurrentShapeCounter = pCurrentShapeCounter + 1
  21.  
  22.     end
  23.    
  24.     shapeGroup.x = 50
  25.     localGroup:insert(shapeGroup)
Add Comment
Please, Sign In to add comment