hey, i am wondering if there is anyway in Corona in determining the total width (x) or height (y) of the items in a group, for example i have two background images which have the dimensions of 480 x 320
[code]
local game = display.newGroup();
game.x = 0;
game.y = 0;
local sky = display.newImageRect( “sky.png”, 480, 320)
sky:setReferencePoint(display.CenterLeftReferencePoint);
game:insert( sky )
sky.x = 0; sky.y = 160;
local sky2 = display.newImageRect( “sky.png”, 480, 320 )
sky2:setReferencePoint(display.CenterLeftReferencePoint );
game:insert( sky2 )
sky2.x = 120; sky2.y = 160;[/code]
(sky2 overlaps with sky)
so the total width (x) of the group (game) would be 600 right…is there a method that will find this out for me?, or a way to do this? [import]uid: 34863 topic_id: 7199 reply_id: 307199[/import]
[import]uid: 34863 topic_id: 7199 reply_id: 25392[/import]