Search the Community
Showing results for tags 'timeout'.
Found 2 results
Hi guys, I am using phaser to dev a game, currently I got a problem that, I want to deploy my assets resource on a cdn, so I need to make a resource loader for these assets. the basic logic is that firstly I will start fetch the resource from cdn, after serval seconds, if I can not get the resource, I will switch the way to get the assets from local. for the phaser, I do not know how to check if game.load.image/ game.load.atlasJSONHash can get the corresponding resource. so is there anyone have idea how should I handle this, thx.
I was wondering if anyone knows a way I can detect if a tween is running for a certain amount of time. I've got a loading icon which needs to trigger an event if it runs for a certain length, kind of like a timeout. If anybody knows a good way to achieve this please share!