How to pause game with Spacebar??

Started by Grog_boy, Tue 22/04/2003 01:09:01

Previous topic - Next topic

Grog_boy

Hi!
This is my first message here it's kind stupid but I couldn't find out this by anywhere else so I'm turning to this poll to help to solve my problem.
How can pause my game using the spacebar like in the classic LucasArts adventures?? ???

BlackBaron

I'm trying to do an interface similar (actually as similar as posible) to that of Indy Jones and the Fate of Atlantis, so I'm probably gonna try to do that soon (surely before the en of the week).
It doens't seem to be a hard thing to do, so as soon as I do it I'll post it here.
"Do you thirst for knowledge no matter the cost?"
            -Watrik, master glassblower

Scummbuddy

This is what mine is in my global script.

Under function on_key_press(int keycode)
---------------------------------------
 if (IsKeyPressed(32)==1)
   {
      if (IsGamePaused()==0)
       {
            PauseGame();
         GUIOn(5);
         DisableInterface();
       }
    else
       {
            UnPauseGame();
         GUIOff(5);
          EnableInterface();
         }
      }
------------------------------
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

BlackBaron

Well, thanks a lot, you saved me the job of figuring that out  ;D
"Do you thirst for knowledge no matter the cost?"
            -Watrik, master glassblower

Grog_boy

Thanks a lot Scummbuddy :) !!
Another thing... Does anybody have a GUI to a LucasArts Load/Save menu?????
I know this is kinda lazy of me but I tried do create one and didn't worked at all!! The only thing that happened was that my game stopped working....

SMF spam blocked by CleanTalk