Help! Major game problem

ArmuelArmuel Member Posts: 31
edited January 2012 in Working with GS (Mac)
Ok so Im working on a rpg. I have it so when the character is moving, every 2 seconds there is a 1 in 5 chance that you'll encounter an enemy. When the integer is 1, the game pauses and you go to a battle screen where you battle the enemy. When you kill the enemy it unpauses and you return to the field. But then the attack button stops working and the character stops controlling the camera. Any ideas. Help is much appreciated.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited January 2012
    Have to see the code but are you saying on the pause screen the attack button stops working? I've seen so e posts about issues with the pause behavior as it's not stoping timers et... So if your fight happens on a different scene and you're calling up by using pause try doing a straight scene change and back and see what happens.
  • ArmuelArmuel Member Posts: 31
    Thx for quick reply, can't show code right now but I'll just clear this up:
    The battle takes place ON the pause screen, but when I unpause back to the main game the buttons stop working.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    If there are any attributes that are triggered to use the buttons, you need to set them back to being active again whenever you win the fight, or whatever it is that takes you out of the pause screen, and back to the main game.

    And I'm not sure if it's a good idea to have game action stuff going on inside a pause screen. I've never messed with that, so it may be okay, I don't know for sure, but I only use the pause screen for pausing the game, or something along the lines of menu selections like stop music or whatever. Like i said, I don't know for sure, but maybe that could also be the cause of your buttons to stop working.
  • ArmuelArmuel Member Posts: 31
    Ok well I tried using change scene back and forth and it still screws up the buttons but now its controlling the camera again.....
    SO maybe its something to do with the scene itself, let me try something and Ill get back to you, in the meantime, could you have a look at my random generation post? thanks
  • ArmuelArmuel Member Posts: 31
    Fixed it! Had something to do with my Attacking? Variable that was getting stuck when I changed scenes. I ended up using changE scene instead of pause and setting a encounter x and encounter y so you go back to the same place.
Sign In or Register to comment.