How can I improve my dodge system

Hello, so I am making a rogue-lite party game (keyboard and controller) and I have made a simple dodge system. It works for a basic idea but I want to improve it, one thing I wanna do is make it so if you press and hold a directional button you dodge in that direction instead of going via the forward direction but I don’t know how to do that. Any other suggestions on how to improve it would also be helpful too (I wanna try keep it in theme with my idea of unprepared tho)

Here is what my code looks like

and then here is a GIF of how it works

Untitled video - Made with Clipchamp

you can replace ActorForwardVector with GetLastMovementInputVector

1 Like

I would remove the bool from this function. Also experiment with GAS, move the logic to an ability, and use gameplaytags to track states.

1 Like

Thank you that made the dodging way better

Okay I will look into GAS and gameplaytags