Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------
- -- DIPLAYGROUP TWEAKING TOGETHER WITH [SK]RAY
- -----------------------------------------
- local myGroup = display.newGroup()
- local ball1 = display.newImageRect ( "ball.png" )
- myGroup:insert( 1, ball1 )
- local ball2 = display.newImageRect ( "ball.png" )
- myGroup:insert( 1, ball2 )
- local ball3 = display.newImageRect ( "ball.png" )
- myGroup:insert( 1, ball3 )
- myGroup:remove( ball2 ) -- NOW THE BALL AT PLACE 2 IN THE STACK IS REMOVES ITS 2 LEFT
- myGroup:insert(2, ball2 ) --[[ THOUGHT WE NOW HAVE BALL2 IN PLACE 2 OF THE STACK AND BALL3 WAS MOVED UP TO PLACE 3--]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement