One layout, many event sheets?

Get help using Construct 2

Post » Sat Feb 16, 2013 4:47 pm

I can find many treads about linking the same event sheet to different layouts, but...

What if the layout is almost the same for all the levels?

Is it somehow possible to just include another event sheet when you go to the next level, on the same layout?

If not, how will copying the layout say 50 times for 50 nearly identical looking levels influence the file size and memory used?
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Sat Feb 16, 2013 6:35 pm

Use the include option in your event sheet to include other event sheets. By default each layout gets its own event sheet. IN that event sheet you can add includes to use mroe events sheets. So for each of your layouts, just go to the event sheet that it comes with and use include to attach your other event sheet. You can also set the event sheet for your layout using the layout properties.

B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Sat Feb 16, 2013 7:16 pm

But this way the included event sheet is activated instantly (I think).
What if I want some conditions met before the event sheet is included?
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Sat Feb 16, 2013 7:22 pm

You can include event sheets just like normla sub events.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Feb 16, 2013 9:29 pm

Thanks.

So If I understand your suggestion it's like this:

group - level1
include - level1

group - level2
include - level2

group - level3
include - level3

And only activate the groups if the level is reached...

Still that will require a lot of lines if I have 50 levels.. (50 I guess)

Maybe I should just copy the layout 50 times... what would you do?WizLore2013-02-16 21:33:49
B
9
S
4
G
1
Posts: 102
Reputation: 2,274

Post » Sat Feb 16, 2013 9:38 pm

Maybe the examples listed in the how do I FAQ in the section "Layout" contain a clear answer/hint for your problem ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Feb 17, 2013 12:43 pm

I think Bluephaze means create a 'global ' event sheet with all the nuts and bolts on it..and just include that to each level sheet. I tend to do that with all my projects...even going so far as to break global functions up into individual sheets for like...say 'physics' specific stuff, certain game mechanics or separate 'enemy' functions/events/ai on a single sheet then just mix and match depending on what you require for each level..

So specific events or functions are grouped and given their own event sheet...works great for me but you gotta be organized and systematic ...think 'plug and play' style component event sheets and you are there...in style:-) mystazsea2013-02-17 12:46:13
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
29
S
11
G
8
Posts: 312
Reputation: 7,333

Post » Tue Feb 19, 2013 8:46 pm

Yes.. ty mystazsea, I will do that..

So, there is no way around having a Layout for each level?
B
9
S
4
G
1
Posts: 102
Reputation: 2,274


Return to How do I....?

Who is online

Users browsing this forum: Braus and 15 guests