How do you track your functions in large Construct 3 projects?

Not favoritedFavorited Favorited 0 favourites
  • 7 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi everyone,

    As Construct 3 projects grow, it can become harder to understand the overall function flow across the Event Sheets(at least for me, because I like to use functions everywhere😅).

    For example, when a function is called by another function, which is called by another function, and so on. Or when the same function is called from many different places.

    I’m curious if others also deal with this in medium or large projects.

    Do you mostly rely on Find all references, comments, naming conventions, groups, or some other workflow?

    The reason I’m asking is that I’m developing a small read-only desktop app that opens a Construct 3 folder project and shows a function-focused view: functions, callers, root event chains and unused functions.

    I’m building it because I find this kind of overview useful when working with larger projects, but I’d like to hear how others handle this workflow.

    If there is interest, I may polish it further and consider releasing it on the Construct Asset Store later.

    What do you think?

  • Not sure if helpful but I have a medium sized game now and hardly use function in function, I prefer to call the function then wait for a signal from that function and run the next one, in this way you have all of the function calls in an action block and can easily see the flow. If I must use function within function then inside that function will be waiting for a signal from the embedded one.

  • It is helpful, indeed. I barely use "wait for signal" in my projects. Thanks for sharing! 🙂

  • Iirc I think you can use CTRL+F Find, type "on function", and you will get a list of all your functions (assuming no comments have "on function").

  • Iirc I think you can use CTRL+F Find, type "on function", and you will get a list of all your functions (assuming no comments have "on function").

    That’s right. CTRL+F is useful, but lately I’ve been nesting functions inside other functions, and in some of my projects it gets difficult to follow the flow with CTRL+F alone.

    This is the tool I’m building to help me keep track of it, so it's easy to see from where a function is being called and what other functions this function calls.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is the tool I’m building to help me keep track of it, so it's easy to see from where a function is being called and what other functions this function calls.

    Nice, keep us posted on your progress. I don't use nested functions but I can definitely benefit from a tool that lists all functions in my project alphabetically.

  • Nice, keep us posted on your progress. I don't use nested functions but I can definitely benefit from a tool that lists all functions in my project alphabetically.

    Finally I've built a version of it and uploaded to the construct store. For anyone interested you can find it here.

    construct.net/en/game-assets/tools/function-flow-5609

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