<img src="http://www.flickr/photos/seggo0227/8208127140/in/photostream" border="0" />
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?
here is picture
Develop games in your browser. Powerful, performant & highly capable.
I think the problem could be the with the "Every 4 seconds" condition. The timer does not reset even after a layout restart, thus toggling LeftRight at odd timings.
Below is a solution that uses a different approach to create the same condition:
Hope it helps.
aruche thanks a lot, it can help