Conditions not met, actions still happen

Get help using Construct 2

Post » Fri Jun 21, 2013 8:49 pm

Make a variable called "clickDelay", and then add an event like this:

"clickDelay" > 0
-> Subtract 1 from "clickDelay"

Now add an action to both those events you have:
-> Set "clickDelay" to 6

And a condition to both your events:
"clickDelay" <= 0

Now you will never fire click events twice by accident, it will have a 1/10 of a second of time between clicks
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,209

Post » Fri Jun 21, 2013 8:52 pm

All that is happening here is that the number is added so fast that it is registering your condition 4 by the time you have lifted your finger from the mouse...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Jun 21, 2013 8:59 pm

Easier still add the number "on mouse Button released" instead of on clicked...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Previous

Return to How do I....?

Who is online

Users browsing this forum: Soulmachine and 13 guests