How do I add controls to another control

Get help using Construct 2

Post » Sat Nov 08, 2014 5:29 pm

I have a keyboard set up, when i press this key do this....

with out copying and changing it out for Touch,

how can i include a Touch to this event....not a condition but just another way to complete this action...
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Sun Nov 09, 2014 3:25 am

You'll need to turn your event into an 'Or' block. Move your other conditions -- the overlapping check, value compare, what have you -- into a subevent of the keyboard event. Add your touch condition to the keyboard event, then, right click the event and click Make 'Or' block, and your event will now check if either the keyboard or the touch condition is true. Move your actions into the subevent where you check your other conditions and you're good.

EDIT: Here's an example I pulled together real quick.

touchKeyboardExample.capx
You do not have the required permissions to view the files attached to this post.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116


Return to How do I....?

Who is online

Users browsing this forum: batto, dop2000, Yahoo [Bot] and 24 guests