How do I create a "dashing" function

Get help using Construct 2

Post » Mon Jun 30, 2014 1:34 am

I got your capx.

My example wont work with 8direction the way it is now.

If you are using 8direction you dont need mirror or flip, as the behavior can do it for itself. You will need to separate left, right, top and down variables and different dashes for each one.

Use the technique (time and global variable) to make left. Then, create all over again for right, and so on... If even tough you can't make it, drop me a line.
B
33
S
5
G
1
Posts: 163
Reputation: 2,698

Post » Mon Jun 30, 2014 10:00 pm

Hello,

Thank you Scofano and Reza for your help! I managed to get it working now, all it needs is tweaking and proper implementation. I've uploaded the file incase anyone else would like to see how it can be done

drop box com/s/vm7l77q6655zry4/Working%20Dash.capx
B
4
Posts: 11
Reputation: 322

Post » Mon Jun 30, 2014 10:23 pm

Hmm, I noticed when I tried to implement it into my main project I still get the effect of the player dashing forward but from only one button press. This is when I'm using the WASD control scheme, with the Directional Buttons everything works as it should.
B
4
Posts: 11
Reputation: 322

Post » Mon Jun 30, 2014 10:29 pm

add another event and put OR "press left' OR "press A"
B
33
S
5
G
1
Posts: 163
Reputation: 2,698

Post » Tue Jul 01, 2014 12:01 am

I must admit to being lost on that one - I can surely add an event, but when it comes to adding OR operators with keyboard functions, I don't really know where to go from there.
B
4
Posts: 11
Reputation: 322

Post » Tue Jul 01, 2014 12:07 am

Just repeat the same block (copy and paste) with left key and the other with A key.
B
33
S
5
G
1
Posts: 163
Reputation: 2,698

Post » Tue Jul 01, 2014 12:39 am

Alright, that did the trick for the directional Keys, Thanks.

But still the same story for WASD, as in all dash and no regular movement. Would I have to mess around with custom controls or is there something I'm missing still?

Edit: posting screencap for reference
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 11
Reputation: 322

Post » Tue Jul 01, 2014 3:27 am

Did some testing and I fixed it! My problem was having the WASD controls as "Pressed" instead of simply "Down"

It's all working as it should now, thanks again Scofano and Rez for your help!
B
4
Posts: 11
Reputation: 322

Previous

Return to How do I....?

Who is online

Users browsing this forum: Pandy, Uglypenguin and 9 guests