• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code [SOLVED] Variable definition not returning empty array

Massimog

Member
I'm defining an empty array (requiredFlags) in an object's variable definitions like so:

For some reason, this is returning an array of size 1, with 0 as the first value.
I did the exact same thing in another project and that returned an empty array as intended.
This is fairly easy to work around but I'm wondering if anyone knows why this is happening?

Edit: Adding a list item, selecting it in the drop down, then deselecting it resolved the issue.
 

Attachments

Last edited:
Top