Best way to progress throught layouts

Get help using Construct 2

Post » Thu Oct 27, 2011 2:04 am

Each level has a time limit. Once that time limit reaches 0, I want to move to the next layout. Currently the event I use to do this is:

Each tick: LevelLength = LevelLength - dt
Compare: LevelLength <= 0 go to Level2.

LevelLength is global variable that gets set with a new value at the beginning of each layout. Level 2's event sheet includes level 1's event sheet. I have the same condition in level 2:

Compare: LevelLength <= 0 go to Level3.

But for some reason Level2 just repeats endlessly.
B
17
S
6
G
6
Posts: 113
Reputation: 4,161

Post » Thu Oct 27, 2011 2:09 am

"Level 2's event sheet includes level 1's event sheet"
Maybe that's why.

You should have the "mechanics" events in an event sheet that you could include in every level's sheets.
Then, for the ending and those kinds of "links" between layouts, handle them in each level's sheet.Kyatric2011-10-27 02:09:49
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Thu Oct 27, 2011 2:16 am

Thanks Kyatric that was the problem. I just might finish on time for the contest.
B
17
S
6
G
6
Posts: 113
Reputation: 4,161


Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto, Yahoo [Bot] and 19 guests