When i use restart layout it does it,but incorrect.In my top down game enemies already know where am i after restart
Develop games in your browser. Powerful, performant & highly capable.
How to restart like it was just launched first time and not restarted?
i have the same issue, it wont restart "clean"
To make really clean restart, you need delete information about your positions, but I can`t know wher do you keep it without checking the code. However, you can use "save" action on the start of the level and just use action "load", when restart is needed.
I figured it out, for some of my event it was comparing System.Time, which keeps counting even if the layout restarts.
You will need to make another Global variables like GameTime and reset it when the layout restarts.
Hope it helps.