Do Functions save space on event sheets

0 favourites
  • 2 posts
From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • So I have a large project.

    Looking at functions to save space but I notice that when I replace the 6 actions with a function the number of events does not go down does this still save space and make it more efficient or would I be wasting my time? As I need to make my project smaller.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Functions will not make your project file size noticeably smaller except possibly in extreme cases. They can save space in terms of number of events on your event sheet. If your 6 events are replaced with a function that also has 6 events, you will have the same number of events. However, if you use those 6 same events in 10 different places on your event sheet, you would only need to call the function once for each.

    Note that additional actions do not constitute additional events - you can have as many actions per event as you want. The main benefit of functions is when making changes, you can make the change once and have it applied to all instances where the function is called, rather than having to change it in every instance separately.

    As far as efficiency and system resources, functions have negligible impact in most cases.

    To make your project smaller in terms of file size, the first thing to look at and reduce would be the number and resolution of your sprite textures and animations.

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