How do I make the battlegrounds dashes?

I’ve been trying to make a battlegrounds game and stumbled into an issue I thought would be easy: Dashes.

Dashes are the bane of my existence at this point. They have weird logic, hyperarmor, all that stuff. But the worst part? How they move.

I’ve tried using linearvelocity with a reverse exponential graph-- i’ve tried tweens, but I still don’t have an effect I want. It’s giving me a headache.

Can anyone send some source or method? I’ll look into it.

2 Likes

Have you used body velocities yet? If you make the max velocity on the X and Y axis’ 0, you can simulate a dash without having it keep you midair or anything. This is also the case for side dashes if you make the max velocity Y and Z axis’ 0

2 Likes

linear velocity is like body velocity just better

can you show me what you were doing with your linear velocity?

just use body velocity unless you need the specific behavior of linear, no reason to complicate anything

3 Likes

how does linear behave differently?
i always just knew it was like a direct upgrade to body velocity

body velocity is like 5 times simpler and in 99% of cases all you need

3 Likes

tried it out but figured out that linear velocity is a bit better for the effect i want. i used the formula:

v (velocity) = speed * (1−t/d)^3

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.