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