How do you use groups? (I just came from GameSalad and heard that groups is kind of like GameSalad’s ‘scenes’) And i know this is noobish, but how do you change the size of an image? [import]uid: 9983 topic_id: 2999 reply_id: 302999[/import]
Welcome to Corona!
You can think of groups like a container – they hold the objects you create. When you first create an object (display.newImage, display.newCircle, etc.) they are created in the default group (the stage). You can then create a new group (display.newGroup) and insert the created objects into that group.
The advantage of groups is they can be moved, resized, made invisible, and removed (along with the objects in the group). Corona doesn’t have “scenes” but you could create a group and call it “scene_1” and fill it with objects for that scene. Groups can also be used to hold menu objects and other objects (including other groups) that are related and need to be kept together.
The above is a simplification but I hope it gives a better understanding so when you read the online documentation it makes some sense to you.
As far as changing the size of an image (or other display object, including groups), you can change the xScale and yScale property of the group.
-Tom [import]uid: 7559 topic_id: 2999 reply_id: 8630[/import]