I was wondering if there was any code for rotating the screen and all its contents 180 degrees around the center point [import]uid: 116264 topic_id: 20461 reply_id: 320461[/import]
Yes, you’d have a group holding all the objects on screen and rotate the group, most likely.
Alternatively if you want this to happen only when the device is held upside down simple enable portrait and portraitUpsideDown in build.settings.
Peach
[import]uid: 52491 topic_id: 20461 reply_id: 80213[/import]
thanks. How do I put multiple images into 1 group? [import]uid: 116264 topic_id: 20461 reply_id: 81320[/import]
[lua]local oneGroup = display.newGroup()
oneGroup:insert(image1)
oneGroup:insert(image2)
oneGroup:insert(image3)[/lua]
[import]uid: 54716 topic_id: 20461 reply_id: 81333[/import]
Thanks. Once the images are in the group, can I edit the coordinates or rotation of the group as if it was an image? [import]uid: 116264 topic_id: 20461 reply_id: 81410[/import]
Yes, think of the display group as the frame of a painting, you can move it, scale it, and rotate it. [import]uid: 54716 topic_id: 20461 reply_id: 81413[/import]