In my game, I launch a marble towards a group of glass containers, trying to land one inside. The current marble has a touch listener assigned to it when it is created and ready to launch:
curMarble = display.newImage("images/marble.png")
curMarble:addEventListener("touch", marbleTouchListener)
As soon as the marble is launched, I remove the listener.
curMarble:removeEventListener("touch", marbleTouchListener)
When the marble comes to rest, another one is created and assigned to curMarble, and the touch listener is again added. i.e., the first code snippet is again executed.
However, this time it doesn’t respond to touch events, and neither does the original one. Any ideas what happened to the event listener? [import]uid: 58455 topic_id: 11747 reply_id: 311747[/import]