I have this group based on the code from button example
local Group = display.newGroup()
group:insert ( background )
group:insert ( button1 )
group:insert ( button2 )
assert( (group[1] == background) and (group[2] == button1) and (group[3] == button2))
I want to drag it around with the follow me example code.
How do I tag it to:
dragGroup:addEventListener( “touch”, onTouch )
[import]uid: 1908 topic_id: 615 reply_id: 300615[/import]
function onTouch(event)
local phase = event.phase
if “began” == phase then
end
end
group:addEventlistener(“touch”,onTouch)
in your sample above, notice that Group is going to give you and error since you call it group later and dragroup doesn’t exist.
c [import]uid: 24 topic_id: 615 reply_id: 1198[/import]
Carlos thanks. It works. 2 more things.
The button release function is not registering from the grouped buttons
and
what would be the correct syntax to set the group’s isvisible [import]uid: 1908 topic_id: 615 reply_id: 1199[/import]