wongkh Posted September 3, 2018 Share Posted September 3, 2018 Hi. I'm using Phaser v2.11.0 for my game. When using <div> to hide and unhide the game, sometimes it will took few sec to unhide the game. Any method to solve this problem? If I want to hide the game and unhide it later without the delay time. The code I use to hide/unhide game and other div function unhide_game () { document.getElementById("game").style.display = "block"; document.getElementById("other_div").style.display = "none"; } function hide_game () { document.getElementById("game").style.display = "none"; document.getElementById("other_div").style.display = "block"; } Thanks~ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.