How do I Use Touch to simulate Keyboard press?

Get help using Construct 2

Post » Fri May 01, 2015 5:38 pm

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?
Posts: 7
Reputation: 489

Post » Fri May 01, 2015 9:53 pm

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.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
Posts: 648
Reputation: 10,226

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests