on start of layout, direction changed

Get help using Construct 2

Post » Thu Nov 22, 2012 6:36 am



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?
B
11
S
3
G
4
Posts: 22
Reputation: 2,794

Post » Thu Nov 22, 2012 6:37 am

http://www.flickr.com/photos/seggo0227/8208127140/in/photostream
here is picture
B
11
S
3
G
4
Posts: 22
Reputation: 2,794

Post » Thu Nov 22, 2012 9:59 am

@Suvd

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:
http://dl.dropbox.com/u/33370253/RestartMovingIsles.capx

Hope it helps.aruche2012-11-22 10:00:01
B
157
S
114
G
8108
Posts: 42
Reputation: 4,062,739

Post » Fri Nov 23, 2012 2:52 am

@aruche thanks a lot, it can help
B
11
S
3
G
4
Posts: 22
Reputation: 2,794


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests