Hello,
Is there any way to determine when a tilemap has finished loading from JSON? As of right now, I have to put a wait in the code to make sure it has finished loading before doing anything with it.
OokLoc
How long does it take? I imagined this should only take one tick, so a simple "wait 0" should do.
You are correct, a "wait 0" works perfect. I was just curious as to why there wasn't an onLoaded under JSON event. That would be nice. I really hate using wait.
Develop games in your browser. Powerful, performant & highly capable.
"On load" is for asynchronous events, when the wait time is unknown.
Load from JSON just requires 1 tick to process, I guess.