How do you change array size?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Is it possible to change the size of an array whilst the game is running? I'e found no way of changing the dimensions but at the same time i can set the indexes to be outside of the dimensions. If the index is outside of the dimension will the value still be saved?
    Thanks for reading

  • Yes you can write to any dimension without being limited by array starting size.
    Writing to an index outside the array current dimension will "expand" the array to the biggest index
    While there's no way to "reduce" the array indices, other than destroying and recreating the array.

    The only concern you have with array dimension is that "expanding" the array is a (relatively) heavy operation,
    so it's good practice to not "expand" very frequently.
    If you know you're going to write lots of data sequentially,
    better start with a relatively big dimensioned array,
    or (if you can) write first to the "biggest" index,
    so you will expand the array only once
    (writing from smallest to biggest would sequentially expand one time x operation, making it much more heavy to process)

    Well, this is not a "big" concern if your game is not very resource demanding,
    in this case you can safely forget about this matter X)

    a selection of my Fusion examples can be found Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!