I created floating and auto moving isle for my platform game.
Isle has left right direction.
I set on start of layout true. When Boolean instance variable is true isle must to move to right. And Every 4 second, toggle the direction of isle.
When game starting isle moving to right, it's right. But when player die layout restart, then isle moving to the left on start of restarted layout.
How can I to move isle to right an every start of layout?