Dash

Get help using Construct 2

Post » Sun Jan 06, 2013 7:59 am

I've almost got the "Dash" complete. The problem the "Player" is having is that he will still jump with the max speed of the "Dash" if I choose to jump within 1 second after the "Dash" animation is finished.


https://www.dropbox.com/s/2h81lhsa2ux8y2v/Test2.capx


WASD - to move
shift - to dash
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Sun Jan 06, 2013 4:11 pm

Looks like the issue is you reset the speed with On animation "Dash" finished, but if you switch to another animation, then Dash doesn't "finish" - it was preempted. If you set the speed on the other keyboard events, it should work fine.
ImageImage
B
66
S
19
G
121
Posts: 3,195
Reputation: 72,852

Post » Mon Jan 07, 2013 8:01 am

I accidentally sent an older file. I tried without having it on there and it's better, but not what I want. Read my first post again and try it once more if you don't mind.

https://www.dropbox.com/s/2h81lhsa2ux8y2v/Test2.capx
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Mon Jan 07, 2013 2:40 pm

Do you want the player to dash for a fixed amount of time even if they jump or attack? Or do you want the dash to end when the player jumps? For the first, create a timer that sets the speed back to normal after a certain amount of time. For the second, have a 'dash animation not playing/trigger once' event to set the speed back to normal.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Mon Jan 07, 2013 10:43 pm

I'm not sure how familiar you or anyone else is with the Megaman X series, but just how the dashing is done on there is what I want.

If the "player" attacks I want to have a "dash attack" implemented. I just haven't put it in yet.

If the "player" jumps during the "dash" then I want the jump animation to play as it is doing now, but to continue having the speed of the "dash" until landed.

Also if the "player" is dashing to the right and then decides to press left I would like it to end the dash and have the "player" start running to the left just as if they pressed left and never dashed.
B
23
S
6
G
3
Posts: 122
Reputation: 2,922


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests