Double Tap Running?

Discussion and feedback on Construct 2

Post » Thu Nov 01, 2012 11:06 pm

Hi, I'm trying to have a character, where when you double tap the left arrow key, to change speeds and start to run. Can anyone help me out? I can't figure it out for the life of me.
B
3
Posts: 2
Reputation: 354

Post » Thu Nov 01, 2012 11:29 pm

You'll want to start a timer variable every time the left/right button is pressed. then, in the 'on key pressed' condition, compare that timer to some amount. If it's less, then increase the max speed until it's released, then reset the max speed and the timer variable.

You'll need a timer for each direction.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

Post » Fri Nov 02, 2012 12:28 pm

I posted this Example capx recently for a double tap jump.

It's similar to what sqiddster said, but it counted the number of taps in a time period rather than comparing time and had the unit jump instead of run.
Last edited by OddConfection on Wed Jan 03, 2018 12:27 pm, edited 1 time in total.
Find all the Construct 2 games that were on Steam Greenlight here
B
41
S
11
G
7
Posts: 511
Reputation: 7,326

Post » Fri Nov 02, 2012 3:48 pm

This worked perfectly, thank you.
B
3
Posts: 2
Reputation: 354

Post » Fri Dec 29, 2017 4:18 pm

OddConfection wrote:I posted this Example capx recently for a double tap jump.

It's similar to what sqiddster said, but it counted the number of taps in a time period rather than comparing time and had the unit jump instead of run.


Can you please resend an updated dropbox link or capx download link, i need it for my project aswell.
B
4
S
1
Posts: 4
Reputation: 315

Post » Wed Jan 03, 2018 12:28 pm

jjay1029 wrote:Can you please resend an updated dropbox link or capx download link, i need it for my project aswell.


I've updated the link in the previous post with this new one:
https://www.dropbox.com/s/vs521gph1nb6h ... .capx?dl=1
Find all the Construct 2 games that were on Steam Greenlight here
B
41
S
11
G
7
Posts: 511
Reputation: 7,326


Return to Construct 2 General

Who is online

Users browsing this forum: SERGIOManOwaR and 1 guest