Hello,
I tried searching the forums but found various responses. So, I thought I would post my own question and code. I want to have several objects in a group and then move the group across the screen. When I do this the objects seem to flicker in the simulator(maybe a frame rate issue?). I have tried Images and Polygons. Is this just the simulator and it will look fine on the device? Any help would be appreciated! Thanks.
Code:
display.setStatusBar( display.HiddenStatusBar )
_W = display.contentWidth
_H = display.contentHeight
local rect1 = display.newRect(0, 0, 25, 20)
rect1:setReferencePoint(display.TopLeftReferencePoint)
rect1:setFillColor(140, 140, 140)
local rect2 = display.newRect(0, 0, 25, 20)
rect2:setReferencePoint(display.TopLeftReferencePoint)
rect2:setFillColor(240, 240, 240)
local rect3 = display.newRect(0, 0, 25, 20)
rect3:setReferencePoint(display.TopLeftReferencePoint)
rect3:setFillColor(72, 25, 72)
local group01 = display.newGroup()
group01:insert(rect1)
group01:insert(rect2)
group01:insert(rect3)
group01.x = 0 group01.y = 0
rect1.x = 0 rect1.y = 30
rect2.x = 0 rect2.y = 60
rect3.x = 0 rect3.y = 90
transition.to( group01, { time=3000, x=(_W-rect1.width), y=(0)})
[import]uid: 39370 topic_id: 10733 reply_id: 310733[/import]