-
Pause with gamepad
I'm trying to do a pause function which works with a gamepad.
Problem is it will only pause, then I have to use the keyboard to depause. I'm trying to do it with storyboard controls (as opposed to using the menu bar) and Control X to simulate a keypress, but can't make it work. Does anyone have a solution?
-
Re: Pause with gamepad
You can use Time X to pause/unpause with the gamepad.
-
Re: Pause with gamepad
Haven't use that object before, thanks z33z. It's the same problem, though. I can pause with Time X, but how do I unpause?
-
Re: Pause with gamepad
There is an action to set the key to unpause with. I think it's key 256-260 for different buttons if I remember correctly.
-
Re: Pause with gamepad
Thanks for you help z33z. I configured the unpause button to 'j1b3' and made it work - kind of. It pauses/UNpauses fine now, but it's messing up the collision detection when returning to game after unpause.
-
Re: Pause with gamepad
Well you can make your own pause feature. I've done it before. Maybe a little tricky. but if you put all of the game events in a group that gets deactivated when paused, it works. This can introduce some new problems for you to have to sort out though, so might not be better than what you are doing.
-
Re: Pause with gamepad
Make a new sub application same window size as the main application. Then check dialog window and modal on the sub app. Uncheck create at start and check out the frame properties to grab the preview frame. Then make an event that creates the sub app on the screen top left position so that is covers your window. On the sub app events use what ever button you want to exit the application. This will end the sub application frame and resume your game. Since it is set to modal it will complete halt your game.
-
Re: Pause with gamepad
Thanks for you replys.
Shawn - Also had problems with that method.
maVado - Sound a bit complex don't know if I want the function that much, but maybe.
Man if only the Storyboard Controls pause function would let you use buttons (1,2,3...etc) instead of only keys.
-
Re: Pause with gamepad
TechVision, do you want an example, it's really simple ?
-
Re: Pause with gamepad
Oh yeah sure maVado. That would be great.