Is there something wrong if I use set invisible for killed object instead of destroy?
Destroying it removes it completely, setting it invisible just means you can't see it.
Unless you're disabling all behaviours relating to that object when you set it invisible, you could end up with an active invisible enemy, and even if you are you could still end up seeing odd things happen.
Is there any reason why you don't want to destroy the object?
I cant add "destroy" because game is crashing ;-( This enemies has got pinned "think cloud" and when I destroy it, I'm destroying many things in the game, like LifeBar of enemies or lifeBar stops changing when enemy is hitted.
This works for me only:
Develop games in your browser. Powerful, performant & highly capable.
Could you post a capx? I'll check it out my end