I am new Gideros user and I previously used Corona SDK. In Corona I made game and there was two groups for graphics. One for all moving graphic objects and one for static game UI graphics. I could make new group with this code: local UI = display.newGroup() and then I just inserted my graphics to that group.
So how can I make same in Gideros? I have searched but haven't found anything. If I have understood right, there is automatically "group" called "stage" and I can insert my graphics to it with code stage:addChild(image)
But how can I make another "stage" where I can put other graphics? I hope I get help soon and thanks for helpers!
Comments
Website: http://www.castlegateinteractive.com
https://play.google.com/store/apps/developer?id=Castlegate+Interactive
You can then just move / transform the parent and the children all get moved / transformed as well.
As Shape & Bitmap objects are also technically Sprites as well, you can call addChild on them as well, in that case the object is drawn first, then each child is drawn in the order added.
The "stage" object is actually a global that's declared by the framework and represents the "root" of the display system. If you want something to be drawn, it has to be added to the "stage" or one of it's children.
Hope this helps!
Likes: hgvyas123, atilim
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Personally I'm currently looking into replicating the storyboard api and the widget api
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
you can create one function like this