PauseGameOff function

Non-platform specific questions.

PauseGameOff function

Postby RippeR7420 » Wed Jun 12, 2013 6:20 pm

So i know how it works with a keyboard press or a mouse click, But I cant seem to get it working with a Controller.

And all I can find in the Script Reference is this:
PauseGameOff: Continue a game that has been paused by PauseGameOn() function. See Example below under PauseGameOn.
void PauseGameOff()

Script Editor Syntax/ Example Code:
1) When the user wants to pause a game, Create your "pauseActor": "Paused - Click To Resume".
2) On the Create Actor Event of "pauseActor" add a Script Editor Action with the following code:
PauseGameOn();
3) On Mouse Button Down event, add a Script Editor action with the following code:
PauseGameOff();
DestroyActor("Event Actor");



PauseGameOn: Pause the game but continue receiving keyboard and mouse events. This is done so, you can call PauseGameOff() in a keyboard or mouse event.
void PauseGameOn()


Script Editor Syntax:
PauseGameOn();


I can get it to pause the game with a controller, but is there no way to un-pause a game with a controller?


I have a feeling it's "No, you cant. You must use a keyboard or mouse event.", But thanks in advance for answer!
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: PauseGameOff function

Postby skydereign » Wed Jun 12, 2013 6:29 pm

RippeR7420 wrote:I have a feeling it's "No, you cant. You must use a keyboard or mouse event.", But thanks in advance for answer!

You can upause with key events as well.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: PauseGameOff function

Postby RippeR7420 » Wed Jun 12, 2013 7:03 pm

Like assign a joystick button to a key? I don't understand.
Thank you though Sky, for always being so quick, helpful and patient with me. haha.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: PauseGameOff function

Postby skydereign » Wed Jun 12, 2013 10:40 pm

RippeR7420 wrote:Like assign a joystick button to a key? I don't understand.

Ah, I misread that. I didn't see that you put key events as well. But yeah, as long as the joystick is mapped to key events, then it should still work for unpausing.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: PauseGameOff function

Postby RippeR7420 » Thu Jun 13, 2013 5:06 am

Hmmm. Could you lead me in the direction of how to map a joystick to key events? I cant seem to find anything within the forums. but I will keep looking.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron