How do I control through the userinterface (inventory, stats, menu, etc) with gamepad?

0 favourites
  • 7 posts
From the Asset Store
Inventory Aid
$4.90 USD
Create grid-based game inventories and items easily.
  • Hello and first, sorry for my english - i hope you understand what i want to know ;)

    My question is:

    How do I control through the userinterface (inventory, stats, menu, etc) with gamepad?

    So how can i realize it, that there's an "selection-sprite" and on d-pad this "selection" jumps to the next object, previous, left, right, etc.

    Like any controls in JPRGs as Final Fantasy etc.

    I use C2 but i think, there will not be a big different to C3 to get a solution ;)

    Thanks and greetings from Austria :)

  • Which bit are you specifically stuck on? The gamepad object allows you to select which button or stick is pressed as a condition. To move across an interface you could use instance variable on the objects and as you press left and right, add or subtract 1 from a global variable and compare this variable to the objects instance variable, set position to the one that matches.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are there any examples or tutorials about instances?

  • I don't think so, it's just generic programming stuff. An instance is a copy of an object in Construct, you can create lots of copies of the same Sprite for example. An instance variable is a variable that applies to the object but can vary between copies/instances. You can check out the manual for more info.

  • I wrote a tutorial a while back covering menus for gamepad input. It's not been updated in a while, but you might find the logic is something you can build on.

  • Looks nice. Thanks!

    But how can i navigate to a complete menu where are on one side is the inventory, on the othder side is a character-sheet, on the bottom is a toolbar, etc.

  • Looks nice. Thanks!

    But how can i navigate to a complete menu where are on one side is the inventory, on the othder side is a character-sheet, on the bottom is a toolbar, etc.

    You use the same kind of logic for set position and adding 1 to a global variable but instead you group all objects in a Family and set Family instance variables.

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