Multiple even sheets versus one

Discussion and feedback on Construct 2

Post » Sat Jun 07, 2014 1:52 am

Just wondering which style of coding works better for the program.

Creating small evensheets for multiple actions and behaviours through out the game or just put the majority of coding into one long even sheet.

I can see advantegs and disadvanteges in both styles, but which style works better for construct2 or doesn't it matter that much. As long you keep it logical?
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Sat Jun 07, 2014 2:47 am

Depends on the game. If is a little game of about 200 events there is no problem on using 1 event sheet, but in larger projects it will become a chore to fix bugs, make changes, etc.
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Sat Jun 07, 2014 5:37 am

I use multiple event sheets even when it's smaller than 200 events. It helps organize the code and allows event sheet reuse :D
B
9
S
3
Posts: 55
Reputation: 767

Post » Sat Jun 07, 2014 12:03 pm

I have noticed significant better performances when certain actions/loops are not on the same even sheet.

You can look at an event sheet like a dedicated loop, looping through the events.
Obviously, the longer the list of events, the more processing it needs to do for that particular loop.

At first glance this might not make that big a difference, but, when carefully splitting up collision events and continuously running loops, you will notice a smoothness you will never reach with stuffing everything in a single event sheet.

And ofc, using the profiler with multiple event sheets helps you track down bottlenecks in processing :)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Sat Jun 07, 2014 1:38 pm

And also, multiple event sheets is a really great way to organize yourself, It is clearly a very good thing to have multiple event sheets
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 » Sat Jun 07, 2014 1:58 pm

My Event View for a Manic Miner clone. It means I can amend each element of the game easily, without having to go hunting for a particular routine.
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,386
Reputation: 58,454

Post » Sat Jun 07, 2014 10:49 pm

Gonna have to go with the crowd on multiple event sheets. Also, use groups and disable pieces of code that are not needed at the moment to get the best performance out of your creation.
B
27
S
8
G
3
Posts: 210
Reputation: 6,038


Return to Construct 2 General

Who is online

Users browsing this forum: lukewasthefish and 6 guests