Curved Dash around an object

So I have a lock-on system and I want to make it so if you are locked on and dash left or right you will dash in a circular motion around the locked-on player.
The image below shows what I’m trying to achieve:

Red - Locked on enemy
Blue - Local Player
White - Path of dash
Gray - Final destination

image

1 Like

What is your movement system like? What have you tried to get it to work?

If you are locked onto the target (facing it) wouldn’t this automatically spin your player towards the target while dashing left or right which would cause the movement you seek?

I am also looking for a good solution and thought maybe a texture on a surface GUI would be good, but now I"m leaning towards a solution using beams.

I’m hoping to glean something from this tutorial that might help.

For normal dashes I use bodyvelos

Wait I’m a little confused, how would I turn that into a dash

Last time I tried the player just just went straight to the left

I ended up doing this for my tower defense game, by creating a dashed circle image, and then using that on a SurfaceGUI that I applied to the top of a part, and changed the Rotation property via a tween, and kept having it looped… to make it appear, I use raycasting from my mouse cursor to call the function to start it.

I think if you make the circle image white, you can just change the imagecolor property to those Red/Blue/White/Gray colors.

I wish I could provide more help, like a module for all of this. What I have now just sort of works for my own purposes, but it would be nice to have a clean solution for this in the future, if someone could create it for Roblox. Maybe I will, after I finish my project.

You can use Bezier Curves for this! Documentation: Bézier Curves | Roblox Creator Documentation