The Daily Click ::. Forums ::. Klik Coding Help ::. Ways to do "Double Tap for dash"
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
26th January, 2015 at 26/01/2015 19:46:20 -

So im using the platform movement object, but am kinda stumped. how would one do a double tap to dash feature? the couple ways i thought to do it ended horribly.

 
[Game design makes my brain feel like its gonna explode.]

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
28th January, 2015 at 28/01/2015 21:42:46 -

What part do you need help with? The double tap part or the dash part?

The double tap is easy. Just have a counter that acts as a timer. When the user presses once you set the value to something like 20 then decrement it always. If the user presses the key again before the value gets to zero activate the dash.

I haven't used the platform movement object so I can't help out much with the dash itself. I guess you could just temporarily increase the players movement speed?

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
30th January, 2015 at 30/01/2015 23:10:34 -

I did exactly that lol. it gives you about a third of a second to hit the button again, then it increases the max x velocity from 120 to 200. guess i was just too tired the first time i tried it and messed something up.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click