X amount of monsters destroyed transition

Get help using Construct 2

Post » Sun Feb 10, 2013 9:49 pm

Is there a way when, after destroying X amount of monsters, the layout can change to a new layout? Such as if the player killed 12 monsters, the layout would swap for another layout?
B
11
S
4
G
3
Posts: 210
Reputation: 5,308

Post » Sun Feb 10, 2013 9:58 pm

Add variable monstersSlain.

Everytime you kill a monster add 1 to that variable.

When monstersSlain equals 12, go to layout 2 and setmonstersSlain back to 0.
B
24
S
8
G
7
Posts: 756
Reputation: 7,222

Post » Sun Feb 10, 2013 9:58 pm

[QUOTE=vee41] Add variable monstersSlain.

Everytime you kill a monster add 1 to that variable.

When monstersSlain equals 12, go to layout 2 and setmonstersSlain back to 0.[/QUOTE]

Thanks!
B
11
S
4
G
3
Posts: 210
Reputation: 5,308

Post » Mon Feb 11, 2013 2:31 am

Might want to make that >= 12 on the check incase of some weirdness that happens to cause adding more than 1 to the variable. It's a safe coding practice.
B
27
S
8
G
3
Posts: 210
Reputation: 5,998


Return to How do I....?

Who is online

Users browsing this forum: Mik07 and 2 guests