Hi, I have a “PlayScene” that is my main game which I start fro the “BootScene” with this code:
this.scene.start(PLAY_SCENE)
Then when the player dies I have a “GameOverScene”, and when the player clicks the “Play again” button I would like to restart the play scene from the beginning.
The issue is that when I try to start the play scene again… nothing happens. I am just left with a dark grey screen…
maybe you can show that some of related code.
Reastart can be simply achive by this.scene.restart(), or if you was start to the other scene (A to B), it can be start the scene A again.
I pushed some changed to the code. I am still using the update function, but I changed the code to use the listener instead.
It works when I start the scene the first time, but unfortunately I am getting really crazy values after I start the game again from the game over screen.
Thanks! Please check it out as I am totally baffled.
Also, I tried searching for “remove” in the docs, but it brought up a list of one million unrelated classes. How do you recommend using the docs to find this mystery remove function? It doesn’t exist on the scene where I would think it should be.
Okay I have a question about your goal for the pointer. Are you trying to get the camera to follow the pointer or just have the pointer’s x and y relative to the camera?