The moment a value or string is off screen in an array, it disappears. All of it's data is gone when the project is previewed. How do I store data in arrays in Json format?
Develop games in your browser. Powerful, performant & highly capable.
I don't understand what you mean by "a value or string is off screen in an array". Are you talking about the array editor? Can you post a screenshot?
Yes, I am talking about an array.
I know you are talking about the array, but you need to post a screenshot of your problem because it's unclear what you mean. Array is not a visible object, it's a data structure, it can not be on-screen or off-screen.
I was wrong, they don't disappear when they're off screen, but there's still an issue with the array not returning any values.
Can you post a screenshot of your event sheet? Or share your project file?
This is the exact same array, titled overworld data.
No, it doesn't work this way.
You need to request the JSON file with AJAX first, then load it into the array from AJAX.LastData
I tried with and without spaces, it doesn't work either way.
*Facepalm*
If you do exactly like on my screenshot, it should work. Run the game in Debug Mode and check the array contents.
If it still doesn't work, please post your project file. It's tiresome when you reveal only a small bit of information at a time..
I did it exactly like the screenshot, why does it still not work?