Pause Game Doesn't Work Properly!

I have a pop up to show that you have completed a mission. At the end of the level, if you have completed the mission then the game (Is supposed to) show a pop up saying that you have completed the mission. However, the game freezes when the pop up is supposed to show up, it doesn't go to the scene it's supposed to go to.
I also have a pause button, which works fine, so I don't know why this isn't working.

Please, if anyone can think of what is wrong here I would greatly appreciate it.

Comments

  • DuesDues Member Posts: 1,159
    As been stated many times before...please post a screenshot of you rules. That makes it much easier for someone to spot the problem and help you. :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    If it's freezing you have a error in your code. Show the code that makes the pop up window appear.
  • MattcusMattcus Member Posts: 85
    Sorry, for some reason I didn't think of that.
    This is what is supposed to trigger the pop-up

    image
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited August 2013
    Okay one thing I would do is uncheck run to completion on that timer you don't need it. If it still freezes make a empty scene and put an actor in there and say when touch is pressed and put the pause behavior in it and scene mission. If it freezes there then the issue is in the mission scene. Anytime a game freezes like that and or crashes it means you have a fatal error. Common errors that will return what's called a null are mistakenly changing a Boolean to any thing other than true false and changing an interger or real attribute to true false. There are tons more but those are common mistakes that will cause a crash.
  • MattcusMattcus Member Posts: 85
    Putting in an actor on it's own to activate the pause, worked. So know I don't know what to look for. Do you know where the problem might be. I know it's probably in the scene I'm starting from, but I have a lot of things in that scene so I don't know where to start.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    look at what"s happening in the end. Did you uncheck the run to completion on that timer? I've had that mess up pause before. Also you might want to skip using the pause menu like that and just have the graphics spawn at the end. The pause menu is not the best way to do that as it stops everything in the background. Do your change of scene from inside the level scene not the pause menu.
  • MattcusMattcus Member Posts: 85
    I'll try doing it without pause menu and just spawn the actors at the end of the game, but what o you mean by: "Do your change of scene from inside the level scene not the pause menu"?
  • MattcusMattcus Member Posts: 85
    edited August 2013
    Ok, I set it up to spawn the actors at the end of the game, rather than pause the game, but now it freezes at the level select scene when I try to access the main scene.
  • VolontaArtsVolontaArts Member Posts: 510
    idk if you got your pause problem fixed but this helped me a lot
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited August 2013
    Is that before you get to the end level scene? Somewhere in you code you have an error. What I mean is a pause is actually another scene running with the other scene on hold. So in theory there are two scenes active. Pause can be glitchy and I never use it expect to pause a game and either return to the place before pause or back to the main menu.
Sign In or Register to comment.