Group not active when changing layout. Solution?

Get help using Construct 2

Post » Wed Oct 05, 2016 11:18 am

I have 5 layouts (level 1 to 5) that share the same event sheet. So at the end of each level, player can continue to the next level and so on.

The problem is that when I reach the next level, a lot of events in different groups are not working. Is there a way to completely restart the event sheet?

I even tried to change to another layout first (main menu) then go back to the next level, but it's still broken.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Wed Oct 05, 2016 7:13 pm

Disabled Groups are forever disabled if not reactivated unless you restart the application (Considering that you didn't save & load the game state)..
In other words, groups are persistent.
The only way you can re-activate them all is to do it manually. You can also use loops to shorten the event count in activating the groups.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036

Post » Thu Oct 06, 2016 9:00 am

Your "On start of layout" event should activate the groups that need to be activated and deactivate the groups that need to be deactivated.
In other words, your own initialisation of the logic of the event sheet as you expect it to work on start of a new level/layout.

You can put all those actions in a function and call this function on start of the layout.
In the same order of idea, you can "clean up" in the "On end of layout" event to disable groups that need to be disabled/enable groups that need to be enabled.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306

Post » Thu Oct 06, 2016 10:25 pm

Thanks guys.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests