Button actions please help

Get help using Construct 2

Post » Tue Mar 28, 2017 5:24 pm

how do i make a single button do a multiple actions one after another? like if i put a button and set it to preform an action and then i want to click the same button afterwards and i want it to preform a different action??
B
2
Posts: 2
Reputation: 154

Post » Tue Mar 28, 2017 5:32 pm

You can use a button to add a number to a global variable and the run an event based on that number.

Global variable NUMBER=0, Global Variable TRIGGER =0

On Key Pressed: Add 1 to NUMBER, Set TRIGGER = 1

On NUMBER = 1: do something, Set TRIGGER = 0
Triiger = 1
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Tue Mar 28, 2017 5:59 pm

lamar wrote:You can use a button to add a number to a global variable and the run an event based on that number.

Global variable NUMBER=0, Global Variable TRIGGER =0

On Key Pressed: Add 1 to NUMBER, Set TRIGGER = 1

On NUMBER = 1: do something, Set TRIGGER = 0
Triiger = 1

can you send me a screenshot of how you did it please?
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, valefor and 6 guests