• Suggestions
  • Create a Functions Folder for Global Functions

I like the idea of creating custom UDF's, but the execution of creating these functions is a bit rough.

I understand that we go-to Game Configuration -> Global Function (Tab) then define them and then they generate their own .function file.

However, I feel like if we were able to create these Global Functions from within the Game Explorer, similar to how we create Scripts, it would be just a bit quicker. Especially when searching for a UDF we would like to modify.

Imagine having multiple UDF's and seeing all of them laid out like the Scripts. I believe this would be easier to locate and modify instead of going into the Game Configuration screen and having to scroll through possibly dozen of UDF's to find the right function and then modify it, close the window, see if it works, then if it doesn't, we have to repeat to locate the function again.

    GregoryAM I should also mention that this folder should / would be called "Global Function" or something relative to that. Since that's what they would be.

    3 months later

    I'd like this too. More support around reusable code would really bring some sanity to more complex games.

    Would also like to include a script from within another script. Again to reduce code duplication.

    So my son has a game that's getting quite complicated (tower defense game) with lots of layers of logic.

    The more I watch him try to wrangle the code he's got ... the more convinced I am that we need a bit more code-management tools beyond just global functions. Being able to include scripts inside of other scripts at run-time would be awesome. It's also not obvious how to do a search across ALL your scripts.