Does anyone have any suggestions on how to work around this On Destroy bug??
Develop games in your browser. Powerful, performant & highly capable.
nevermind- I found a workaround.
I used a globalvariable and set it to 1 before loading. Then on destroy events, I add condition to check if variable is 0.
It seems the on destroy fires BEFORE loading (when everything is destroyed), and the resulting actions are performed AFTER loading.
Thanks for this. Useful to have it in mind.