Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
"On load" is for asynchronous events, when the wait time is unknown.
Load from JSON just requires 1 tick to process, I guess.