How do I include event sheets based on a variable?

Get help using Construct 2

Post » Mon Sep 29, 2014 6:44 pm

Is it possible to insert different event sheets based on a variable given easily? So I could set a global variable before I change to a different layout and then, when that layout loads, the correct event sheet is loaded into the event sheet of that layout based on the value of the previously set global variable?
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Mon Sep 29, 2014 6:48 pm

Event sheet - no..
Groups - yes

So based on the global variable set a group active..

You could just put all the events of an event sheet in one group, but all eventsheets should be included in the main eventsheet linked to the layout..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Sep 29, 2014 9:37 pm

You can also make an event "compare two values", then drag and drop the include under it, it will be executed the same way a subevent is (aka: the condition above has to be true for it to be read by the engine.)
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

Post » Mon Sep 29, 2014 9:48 pm

I would just join the event sheets into one. Having separate event sheets is more so for the developer to easily find things.
B
56
S
15
G
13
Posts: 826
Reputation: 17,675

Post » Mon Sep 29, 2014 9:55 pm

Aphrodite wrote:You can also make an event "compare two values", then drag and drop the include under it, it will be executed the same way a subevent is (aka: the condition above has to be true for it to be read by the engine.)


I didn't even know that.. haha..
Ok... Yep, that would work..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Sep 29, 2014 10:53 pm

Okay, but the first method actually suits better in my case, thanks :)
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests