This is supposed to be simple- but I preview in debug and the array is not populated with anything after it runs...
Am I missing something?
Develop games in your browser. Powerful, performant & highly capable.
Can you show the contents of PetalsData.json ?
Sure, there doesn't seem to be anything wrong here- you can't see it all but it goes up to 20 cells, and it is the same size as my Array
This is odd, I don't see any mistakes in your screenshots, the code should work.
Does the text "LOADED JSON" appear? Check that your array is set as global.
If nothing helps, please post your project file.
Try this
construct.net/en/tutorials/load-json-data-arrays-2566