One Giant Event Sheet

Get help using Construct 2

Post » Fri Mar 07, 2014 8:50 am

I've been developing my game for a while using a single event sheet and setting every parameter as "if LayoutName = "Whateverthelayoutnameis", and then having all of my events under those for each layout. While everything works fine this way, I loaded up the debugger just to play around with, and it looks like stuff that should NOT be utilizing CPU actually is (very minimal, 0.1% here or there, but it adds up rather quickly).

Is the way I'm going about this wrong? Should I have an event sheet for each layout? Or is there a better way to do a one event sheet game?
B
40
S
12
G
1
Posts: 533
Reputation: 4,149

Post » Fri Mar 07, 2014 9:27 am

Why do you need to use one event sheet?
I use one event sheet for each layout.Another event sheet(s) for animations,player,environment etc.It's much easier and cleaner.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Fri Mar 07, 2014 9:38 am

@DocAi - Originally I thought it would be easier to search for certain things. I suppose I could make an event sheet for each layout, but I have over 60 layouts; it might be a bit of pain at this point. I wouldn't count it out if I couldn't find a solution, however.
B
40
S
12
G
1
Posts: 533
Reputation: 4,149

Post » Fri Mar 07, 2014 10:02 am

You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Fri Mar 07, 2014 1:48 pm

You should use event sheet includes to share common events between layouts, and have a separate event sheet for layout-specific events. Having one sheet which checks the layout name will be harder to manage and unnecessarily degrade performance.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Fri Mar 07, 2014 6:20 pm

I was afraid of that :X

Thanks!
B
40
S
12
G
1
Posts: 533
Reputation: 4,149


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct, Yahoo [Bot] and 27 guests