Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by congwang0517

kill() just put the entity out of the game stage, but didn't destory the var's quote. It still in the memory. Should i put the killed entity = null??
Thanks for any help.

1 decade ago by gxxaxx

Without know how you are accessing the quote, it is hard to know precisely what might work for you.

Any entity that has been "killed" will have this._killed == true after the current game update cycle is finished.

Perhaps filtering for _killed == false before using a quote could work for you.

My concern about setting the entity to null would be running into bugs during update if the engine is still counting on that entity and its properties or methods still being around.

1 decade ago by congwang0517

Thanks gxxaxx. I won't but the killed entity to null
Page 1 of 1
« first « previous next › last »