Deleting Objects

I have a problem.

In my game scene, I delete an object, called myBox when it collides with the top of the screen sensor.

i use the removeSelf() method.

However, the goal of the game is to move the squares to the top sensor, and let the other shapes fall. When the user loses, then tries again, the squares (that I deleted last play) appear as i want, but wont preform the collision with the sensor that destroys them again. So the square will not be destroyed a second time, but it is there, as a real working object.

What is a solution? Is there a way to recreate the squares or bring them back?

[import]uid: 59735 topic_id: 16707 reply_id: 316707[/import]

How are you changing the scene? Are you removing the runtime listener (and restarting it) when you reenter the scene? [import]uid: 23649 topic_id: 16707 reply_id: 62575[/import]

would really need to see some code [import]uid: 7911 topic_id: 16707 reply_id: 62580[/import]

I am usuing the direcor class. No i am not restarting the runtime listener…? Should I? If so, how? [import]uid: 59735 topic_id: 16707 reply_id: 62582[/import]

if your code doesnt use a runtime listener then theres no runtime to start or stop
try to narrow the problem down to a part of the code you think is where the problem is and post it thats the best way to get an answer [import]uid: 7911 topic_id: 16707 reply_id: 62588[/import]

No, it does use a runtime listener! [import]uid: 59735 topic_id: 16707 reply_id: 62650[/import]

No, it does use a runtime listener! [import]uid: 59735 topic_id: 16707 reply_id: 62651[/import]

then runtime not the problem
without seeing some code it could be a million things
we need to see how the collision event is setup monitored and how blocks or created at lease [import]uid: 7911 topic_id: 16707 reply_id: 62656[/import]