Hello, i am having a problem with removing a event listenr.
This is the error
Runtime error
/Users/gzijlstra/Desktop/App/First Project/game.lua:94: attempt to call method 'removeEventListener' (a nil value)
stack traceback:
[C]: in function 'removeEventListener'
/Users/gzijlstra/Desktop/App/First Project/game.lua:94: in function 'gameover'
This is the code i have to remove it:
[lua]for g=1,n do
name = spawn[g]
name:removeEventListener(“touch”, delete)
end[/lua]
Whats wrong?
Thanks Gjosse [import]uid: 120506 topic_id: 24022 reply_id: 324022[/import]