How do I Use Touch to simulate Keyboard press?

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 have a working game using Keyboard inputs 1, 2, 3 to switch between items. When a player left click it uses the correct skill. This all works perfectly fine, however I'm not sure how to add in touch controls.

    There are 'pictures' of the 3 choices, and I can get it so you can make a choice.... BUT once say, '1' is selected you cannot change to '2' or '3' instead it just acts as the mouse and uses '1' no matter what.

    A) Is there a way to have something like "on touch > image> simulate keyboard '1' press"?

    B) Disable 'touch' as a mouse click over an object?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Keypresses are direct information.. they automatically toggle/untoggle so to speak.

    You will need to think of your 'pictures' as buttons. They will need to have two states; On and Off.

    To do this you will need to assign them variables defaulted to Off and turn one on when touched/clicked and others off, etc.

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