i am developing a game…one tank on ground and so many object are flying on sky, when i am firing bullet from tank, if bullet collide with object then object are removing and after 100 firing tank are removing self, then Gave over…after Game over i want to remove all objects who are flying on screen(actually cancel all transition and clean screen ) any help:
Code of object who are flying on screen…
[lua] if (rand <= 50) then
enytnk = display.newImage(“tankbody.png”)
enytnk.x = 40
enytnk.y = 40
enytnk.name = “enytnk”
enytnk.isLive = true
physics.addBody(enytnk, { friction = 0, density = 100 })
tr1=transition.to(enytnk, {
delay = 50,
time = 20000,
x = 1024,
y = 60,
alpha = 1,
})[/lua]
Code of game over
[lua]transition.cancel(tr1)[/lua] [import]uid: 87661 topic_id: 20328 reply_id: 320328[/import]