How do I keep my code organized while also functional?

0 favourites
  • 4 posts
From the Asset Store
Two levels with two sistem Wave. with Source-code (.c3p) + HTML5 Exported.
  • Hi all-

    I've been working on a top down adventure game and as I've been putting in a bunch of time the event sheet has been getting pretty crowded. I've been getting a lot of help form the forums here and I noticed a few of the demos I downloaded used "Groups" to keep the event sheet tidy. I went through my sheets and organized but now a number of the things that I had working (enemy attack patterns, NPC custom movement) are all messed up. I think I am likely using these "Groups" without understanding how they affect the code- could you please give me a little advice here? Also is there another method of organizing the event sheets?

    Thank you for any help you can give

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Did you know you can "include" the contents of one event sheet in another? This plus groups is hands-down the way to go. My game has a huge amount of "global" code that handles basic things like controls, dialogue box logic, how loading zones work, etc, and then I include that master sheet in every other sheet for the individual levels so I don't have to deal with that stuff at all unless there's a problem with it. Putting things into groups shouldn't mess them up per se, as long as the groups are Active in the way you'd want, but do look into whether you messed up the order of some events by moving them into groups? Make sure Construct can cycle through all the events in order and in a way that works.

  • I agree with Mikehive, it seems like an includes issue. But I don't know unless I see anything first hand. Also did you select from the event sheet and like drag and drop into the group folder? Sometimes when you do that you might select just the action itself, and not the entire event.

    That could be happening, and I've done that before!

  • Thanks Mikehive and PandaCookies!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)