How do I operate a variable through gamepad input?

0 favourites
  • 3 posts
From the Asset Store
Color Variable
$4.50 USD
10% off
Easily store, modify, read and manipulate colors with Color Variables!
  • I know, this sound pretty straightforward but it doesn't seem to be working for me. I have this line in my event sheet:

    [attachment=0:di27uysv][/attachment:di27uysv]

    No matter what the gamepad condition is (axis change, or pressing a button) it won't add anything to the instance variable PlayerAngle.

    However, it will append or set a textbox to something else, so it IS recognizing the gamepad input. It just doesn't work with variables for some reason.

    Am I missing something?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok so this surely has to be a bug. I added an OR condition to detect keyboard input and it does modify the variable.

    [attachment=0:pscrf2m7][/attachment:pscrf2m7]

    So to make that clear, through the gamepad it only appends text but doesn't modify the variable PlayerAngle.

    With the keyboard, it does both.

  • Ugh. So I had a condition that set that variable to 0 whenever the keyboard buttons were released. That's what was conflicting with the pad. :/ Sorry about that. This thread should probably be deleted

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