How do I do this more simply.

Get help using Construct 2

Post » Thu Mar 19, 2015 2:42 am

I'm trying to get the SPEED variable to increase every two CLICKS that the user does. I want this to increment indefinitely though instead of having to do it manually. Below I have attached a screenshot of how I am currently doing it, however this clearly is not a viable way of doing it indefinitely.
Thanks.

EDIT: Sorry for the vague title, I wasn't quite sure what to write.

Image
B
3
Posts: 4
Reputation: 183

Post » Thu Mar 19, 2015 3:53 am

Speed=int(((Clicks+1)/2) + 1)
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Thu Mar 19, 2015 4:06 am

blackhornet wrote:Speed=int(((Clicks+1)/2) + 1)

Thank you but can you tell me it in C2 format? It confuses me when doing it.
Much appreciated!
B
3
Posts: 4
Reputation: 183

Post » Thu Mar 19, 2015 4:08 am

Is it a double-click event? Are you using Bullet behavior?
Image
B
16
S
7
Posts: 126
Reputation: 1,920

Post » Thu Mar 19, 2015 4:26 am

EstudioCelula3 wrote:Is it a double-click event? Are you using Bullet behavior?

No. "CLICK" is just a variable which increases by 1 when the user clicks and then I am trying to get that variable to increase the "SPEED" variable by 1 every two clicks the user does. Hope that makes sense.
B
3
Posts: 4
Reputation: 183

Post » Thu Mar 19, 2015 4:31 am

.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Thu Mar 19, 2015 4:33 am

blackhornet wrote:.

Thank you so much!
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, R0J0hound and 41 guests