How do I Improve My Events Code

Get help using Construct 2

Post » Wed Nov 04, 2015 2:35 am

After performing some more work on my game build, I'm looking to improve/fix any of my coding in the Events Sheets. Everything I've implemented seems to work fine. Eventually I'll make things look far more organized. Any help would be appreciated.

https://www.dropbox.com/s/18oaf6quyll6jyu/ChanceGame%20Test%201.1.capx?dl=0
B
222
S
124
G
8
Posts: 144
Reputation: 22,114

Post » Wed Nov 04, 2015 7:05 am

B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Wed Nov 04, 2015 7:51 am

Haven't looked at your file, but a few tricks I find are really useful are:

Use multiple Event Sheets - this will enable you to try many different variations of game mechanics by just 'Including' the relevant sheet.

It also enables you to pinpoint problems much quicker as you don't have to trawl through reams of Events.

I generally have separate Event sheets for things such as: Globals, Controls, Collisions, Scoring, Baddies, Loading, Saving, etc.

Readability is better.

Just my 2 cents :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,481
Reputation: 59,748

Post » Wed Nov 04, 2015 10:42 pm

"Use multiple Event Sheets - this will enable you to try many different variations of game mechanics by just 'Including' the relevant sheet. "

This is something I've only recently seen used in another developer's game build. It's actually the reason why my attempt at replicating it didn't work properly until I used the "include" event.

I'll definitely consider the separate even sheets.
B
222
S
124
G
8
Posts: 144
Reputation: 22,114


Return to How do I....?

Who is online

Users browsing this forum: GrogIsGood, kainrazial and 4 guests