Layout-based variables?

Get help using Construct 2

Post » Fri Apr 11, 2014 10:35 am

I want to use the same event sheet for all playable layouts and I want to be able to go to and between layouts.

Is there a way I can assign a value to a variable per layout? for boolean, text-type and number-type variables.

Number-type variables can be used like an index
level 1 layout - variable = 1
level 2 layout - variable = 2
and so on.

same idea for text and boolean variables.

Is this possible?

or if not, is there a way to use a condition that means "if in (SPECIFIC) layout" ?
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Fri Apr 11, 2014 3:25 pm

any ideas?
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Fri Apr 11, 2014 3:28 pm

you can use compare two values with LayoutName, exemple: System>compare two values: LayoutName = "Level 1", do stuffs..
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: Leef and 25 guests