Pausing with a gamepad

This forum is currently in read-only mode.
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • Hi,

    I'm trying to make a pause / unpause feature in my game.

    It's very easy to make it using a Keyboard (Thanks ElPerez!) however my brain is melting because I simply can't do this using the Xbox360 Controller plugin.

    This topic already discussed this same problem. User MrMiller said this should work:

    <img src="http://farm6.static.flickr.com/5109/5674536376_5163bf7cf2.jpg" border="0">

    But it doesn't work for me. I did the same steps shown on this figure. "Pause" group on my event sheet looks exactly like this figure but the game doesn't unpause. I don't know what I'm doing wrong..

    I can make the game pause with "start" and unpause with a different button - but this is not what I want. I want to use the same button ("Start") to pause and unpause. Can someone please help me? Thanks in advance!

  • You should read further down that topic you linked. The last but one post shows how it has to be done. And the post before that even explains why ;)

  • <img src="http://farm6.static.flickr.com/5265/5675359651_25d7c6ce10_z.jpg" border="0" />

  • Thanks for your replies.

    I've pasted the wrong image on the first post of this topic - but I was refering to the same picture MrMiller posted. Sorry for this confusion.

    This is my Pause.cap: http://www.4shared.com/file/9vc6ERIN/PAUSA.html

    I believe that I did the same that MrMiller teached but it still doesn't work for me.

    If someone could find what I'm doing wrong I'd be thankful.

    Besides this little problem I'm amazed with Construct Classic. Such an amazing tool.

  • Your action in event line 1 needs fixing.

    Double-click on the action "-> System: Set global variable 'PAUSE' to 1

    When the box comes up, type in: 1 - global('PAUSE')

    After you do that, line 1 should look exactly like line 21 in the picture I posted above.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Your action in event line 1 needs fixing.

    Double-click on the action "-> System: Set global variable 'PAUSE' to 1

    When the box comes up, type in: 1 - global('PAUSE')

    After you do that, line 1 should look exactly like line 21 in the picture I posted above.

    Thank you SO MUCH for helping me MrMiller. It works perfectly now!

    Hope this topic can be useful for other newcomers.

    My game will have a "Thanks" section and your name will be there for being this generous to me. Thanks again! <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)