Why not, i am making an adventure game and i got a main character, i don't want to have a different instance of it on each layout and i don't want to create manually on every layout, it make sense to make it a global object and you can't make an adventure game without pathfinding and i never made a game without at least 6 layouts
But again just to make it clear for Ashley , this bugs also happens when i call stop and the object is NOT global and without switching layouts.
Develop games in your browser. Powerful, performant & highly capable.
Closing as fixed in the next build. The only issue is the debugger shows the wrong value - the actual Speed expression still correctly returns 0 when it's stopped. It's also by design that 'has path' is still true when it's stopped - it's still got the same calculated path and you could start it moving again.
Ashley It's not that important for now, but if you can add it to your todo list, a clear path action will come in handy, i still have problems when switching layouts, i need to manually add this.s=0 to the stop function on the runtime every update to fix this.