Im missing something fundamental…
My understanding of groups is that you might have a group for ‘this area’ , and another for ‘this set of buttons’ and so on.
Add things to the group, then insert the groups to the scene.
I trie this, but cannot insert into the Group:
local sqGroup = display.newGroup
local aSquare = display.newRect(xx *10,xx*10,10,10)
aSquare:setFillColor( 100,0,200)
sqGroup:insert(aSquare)
That fails on the insert line
But if I insert directly to the scene, it works.
local aSquare = display.newRect(xx *10,xx*10,10,10)
aSquare:setFillColor( 100,0,200)
sceneGroup:insert(aSquare) --sceneGroup is the scene used by composer
Do I misunderstand groups, or do I need to initialise the group in some way to use it?