Hello,
I have been following an EggBreaker example to add objects to a display group, but every time I call group:insert(object) the object simply disappears.
I tried adding true to the insert function, but that didn’t do anything.
Tried setting the position of the object before and after adding to the group as well. All the collisions still work with the object added to the display group.
Here is what I currently have (a short version):
local mainDisplayGroup = display.newGroup()
mainDisplayGroup.x = 0
mainDisplayGroup.y = 0
local ground = display.newImage(“Ground.png”, 0, 280)
mainDisplayGroup:insert(ground)
physics.addBody(ground, {1.0, 1.0, 0.1, filter = collisionFilter})
ground.bodyType = “static”
Thank you,
Dinar. [import]uid: 11971 topic_id: 5722 reply_id: 305722[/import]
