Fixing collision listener not being removed
🧠 Logic•Updated 2 days ago•0 views
Wrap p:removeCollisionListener() in timer.create("x",0.1,1,...) - removing it synchronously in the same tick seems to leave it attached; delayed removal worked …
How to reliably remove a collision listener
Wrap p:removeCollisionListener() in timer.create("x",0.1,1,...) - removing it synchronously in the same tick seems to leave it attached; delayed removal worked (hard to reproduce reliably).