New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phaser Game.destroy is broken. #1092
Comments
Could you please test out the dev branch, which has lots of fixes for this in. |
The only problem now, is when i destroy the game, previous playing audio keeps playing. Do i have to manually destroy it, I tried it within the |
…unds and reset any callbacks. StateManager.clearCurrentState now handles the process of clearing down the current state and is now called if the Game is destroyed. Game.destroy now clears the current state, activating its shutdown callback if it had one. It also now destroys the SoundManager, stopping any currently running sounds (#1092)
Ok try the latest update. |
Sweet, checkout my latest game, change the route to see audio stop. But, yet |
Yes you're supposed to do that, I rarely commit builds when working on dev. |
@photonstorm it doesn't remove the canvas on destroy. |
It does now. |
I am trying to destroy the Phaser game via Game.destroy but console chokes with errors. I am guessing because Phaser doesn't remove window event listeners properly.
I've asked this question on forum: http://www.html5gamedevs.com/topic/8363-how-to-destroy-phaser-game-properly/
This guy has the same problem and fixed it himself: http://www.html5gamedevs.com/topic/7280-phaser-window-and-document-scale-event-listeners-problem/
The text was updated successfully, but these errors were encountered: