-
Hello, This is my first attempt at FXGL and I just ran across an odd error where I can not spawn entities after I remove one from the world. I get the cryptic error message below: Message: null cannot be cast to non-null type com.almasb.fxgl.app.scene.GameView Can someone point me in the right direction? My repo: https://github.com/Harley-L/AgeOfWar Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Harley-L I have not encountered one like this before. Based on your Hopefully this points you in the right direction. |
Beta Was this translation helpful? Give feedback.
Hi @Harley-L
I have not encountered one like this before. Based on your
after I remove one from the world
, my guess would be you still have code that tries to do something with the entity that was removed. An entity, once removed from the world, should not be touched in any way.Hopefully this points you in the right direction.