Note that I’m very new to this. I have a simple JSON file under assets and I want to load it in a variable like I do in other langages.
How can I do that?
Something like that:
var HeroDefault = ccs.load(“HeroDefault.json”);
I get the error that
Simulator : HeroDefault.json does not exist
When I use the simulator.
What is the best way to load a JSON file in the creator? What Am I doing wrong?