Layouts start too early?

Get help using Construct 2

Post » Thu Nov 29, 2012 3:05 am

In my game, there's two layouts. The menu layout and the actual game layout. I'm having a problem with this.

While you're on the menu layout, the game layout already starts doing stuff. Like spawning tanks. By the time you hit the start button, you've already lost health and there's a bunch of tanks already on the screen.

This is not acceptable.

Is there anyway I can prevent this from happening? Thanks.
B
16
S
1
Posts: 21
Reputation: 1,311

Post » Thu Nov 29, 2012 7:38 am

@SingularPixel

Hmm, I could replicate something like that when the 2nd layout has "Every x Seconds" conditions and it seems like the first occurrence of that event is calculated using the amount of time since the start of the game(instead of from the start of the layout).

How to replicate:

Menu layout
-[Condition] Keyboard-> On key press = Spacebar
- [Action] System -> Go to game layout

Game layout
- [Condition] Every 3 seconds
- [Action] System -> Spawn tank.

Scenario:
- Start the game.
- Wait 3 seconds or more
- Press spacebar.

Observation:
- First tank is spawned, without 3 seconds countdown.

I'm not sure if it's the same problem.. but if it is, you could try something like this:
aruche2012-11-29 07:40:23
B
157
S
114
G
8108
Posts: 42
Reputation: 4,062,739


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests