Hi everyone!
I am new to Phaser. My problem is that when I click on the first scene , and then move on to the next scene, my game window freezes. Sometimes the game will start. Sometimes browser will alert that the website is not responding. Could someone please explain this problem and how to fix this?
Thanks!
I can think of at least a couple of reasons why your window “freezes”, but unless we get some code, I’d be guessing.
How are you changing scenes?
If you can, use chrome’s performance tab to see what’s going on.
If I had to venture a guess, you are either doing a very weird, long operation when switching scenes, or your scene creation takes too long (e.g: try creating 100 000 text gameObjects and you’ll see this ‘freezing’ going on too)
I think you may be right about it. However, I hope you can give my codes a look!
Here are my codes for the Scenes: my code. Hope you can check it out!
Thanks!