Looking for tutorials on how to make motion inputs

0 favourites
  • 2 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I've been looking into making fighting games at some point, but before I can even tackle trying to make one, I'd need to know on how to make motion inputs for these games. I was wondering on where I could see about learning how to make these inputs, or at the least where to start on how to make them.

    For context on what motion inputs are, you basically move the joystick in 8 directions, all of them numbered in the same way as a number pad. And by moving the joystick in a certain way and pressing a button you perform a special action... the diagram underneath goes into better detail.

    TL:DR, wondering where to go with learning how to make these inputs

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't have a tutorial or example, but I'd imagine to start you would need a method of keeping track of your inputs over time. This can be done with pushing input values to an array.

    Then it's just a matter of running a function on each key press to check if the last x inputs within a defined time window matches a valid combination. I'd use the timer behavior to reset the array to define the valid input window.

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