How do I operate a variable through gamepad input?

0 favourites
  • 3 posts
From the Asset Store
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:


    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?


  • 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.


    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)