I’m sorry I have to ask this here but the API page had such little explanation anyways, heres the code I’m using which works when I don’t put the object in a group, but when I do, the object just doesn’t appear and I get no debug error messages.
local physics = require("physics")
physics.start()
local tanks = display.newGroup()
function spawntank()
tank = display.newImage("tank.png")
tank.x = 437; tank.y = 202
physics.addBody( tank, { density=0.9, friction=0.3, bounce=0.3} )
tank:setLinearVelocity( -333, 0 )
tanks:insert(tank, true)
end
spawntank()
Any idea how I’m using :insert wrong? [import]uid: 44393 topic_id: 8292 reply_id: 308292[/import]
[import]uid: 22878 topic_id: 8292 reply_id: 29566[/import]