How do I check if player is on a specific layout/level?

Get help using Construct 2

Post » Fri Oct 07, 2016 2:04 pm

Title.
B
9
Posts: 10
Reputation: 357

Post » Fri Oct 07, 2016 2:27 pm

Set a global variable to the layout number when a player goes to it...
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Fri Oct 07, 2016 2:37 pm

System.LayoutName gets the current layout's name.

https://www.scirra.com/manual/126/system-expressions
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Sat Oct 08, 2016 3:03 am

My example was assuming you were viewing a different layout than your player was currently on.. as in a "store" or "menu" layout. :)
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests