I’m working on a top-down party game with tanks and I’m finding it exremely difficult to achieve the type of player controls I’m going for. I am using a controller, no M&K.
I’m trying to have the tanks only move forwards, and rotate on their center if they have to go any other direction, until they are facing said direction and they can then proceed forwards. Kinda like the tank in Halo behaves.
Let me try to explain with an image.
I am now facing right. If I move my stick right, I want to move right. If I move my stick up, I want the tank to rotate on itself until it’s facing up, then proceed to move up.
Current blueprint looks like this:
It achieves the movement concept just fine, but the way I control the tank is completely unnatural. Moving the left stick right will always make the tank move forwards regardless of it facing right or up or any other direction, up and down will always make it rotate and so on.
I tried figuring out on my own but I am not able to, and I couldn’t find anything to help me solve this issue on the internet throughout the last couple of months.
I need help.
Thanks in advance.