Game freezes when i try to go to a scene for the second time

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Titox

Ok I’m gonna put this in as simple terms as possible

I have a menu scene and a play scene.When I run the game it first opens the menu scene.The menu scene has a play button which when pressed, takes me to the play scene.I play in the play scene,lose the game (delibrately of course)and return to the menu scene then I try to go back to the play scene again by clicking the play button but it doesn’t work.My game just freezes,the animation stops playing and the window stops responding.Just like a virus.

Please any clues on what could be going wrong here

Hi without code sample or repo link it is hard to deduct what might be happening. Could You share it ?

Vrzasq | 2019-09-05 08:41

:bust_in_silhouette: Reply From: Titox

Well I figured it out.I was pausing the game using my code on game over.That affected it.I had to ensure that the game was not paused when I went to the menu scene…even in game over