Hello,
I have a group with few imageRect objects inside. Trying to rotate it I get the (auto) reference point of TopLeft. Is there a way to set different ones (MiddleCenter, etc)?
Question is, how to get the dimensions of a display.group?
[code]
Shape1 = display.newImageRect( imgDir… “p1_shape1.png”, 123, 77 ); Shape1.x = 504; Shape1.y = 669; Shape1.alpha = 1; Shape1.oldAlpha = 1
myName = display.newImageRect( imgDir… “p1_myname.png”, 153, 16 ); myName.x = 133; myName.y = 337; myName.alpha = 1; myName.oldAlpha = 1
local myGroup = display.newGroup()
myGroup:insert(Shape1); myGroup:insert(myName)
–My issue is in the x and y position for the group. Without this I cannot set the position of the animation
gtStash.myGroup = gtween.new( myGroup, 3, { x = 512, y = 384, rotation = 360, xScale = 1, yScale = 1, alpha=1}, {ease = gtween.easing.linear, repeatCount = math.huge, reflect = false, delay=0, onComplete=""})
[/code] [import]uid: 4883 topic_id: 24138 reply_id: 324138[/import]
[import]uid: 52491 topic_id: 24138 reply_id: 97512[/import]