How do I run an event when a button is pressed?

Get help using Construct 2

Post » Wed Jun 25, 2014 1:53 pm

How do I run an event when a button is pressed?
B
3
Posts: 3
Reputation: 181

Post » Wed Jun 25, 2014 2:06 pm

Go to your layout and double click it to add the "Keyboard".
Then go into your event sheet and press "Add event".
Click on the "Keyboard" and then press "On key pressed".
Assign the key you want to use as button and add an action.

If you mean clicking on a sprite:

Add the "Mouse" to your layout just as you would add the "Keyboard".
Then "Add event" > "Mouse" > "On object clicked".

Hope this helped
B
6
S
1
Posts: 73
Reputation: 571


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests