Hi everyone!
I recently came up with an idea for an unusual character control and wanted to try to recreate it in UE5. I’ll tell you right away, I program only on blueprints and then using guides, because it’s not my main focus (I’m a game designer).
The idea is that the character turns behind the cursor and moves in its direction if you scroll the mouse wheel up.
I found a video on the “Cobra Code” channel called “Make a 2D Top Down Game in Unreal Engine 5 - Tutorial”. There the guy customizes animations and character movement with the PaperZD plugin. I downloaded it too, followed the tutorial and I got basic WASD control on 8 sides. Next I (to be honest, not really understanding how) made the character rotate behind the cursor. But he still doesn’t want to move on the wheel, apparently it’s the Input: to move in different directions he reads the pressed key (W - go up, S - go down, etc.), and when I make only 1 input key, char moves only in 1 direction
I want to make it so that only 1 key / mouse wheel is always pressed and the hero goes in the direction the cursor is pointing to. Any ideas?
P.S. You can find all the code in the video by Cobra Code mentioned in the third paragraph, I didn’t change it. I have attached the cursor code and the character rotation behind it in the video with additional explanations you might be interested in if you’d like to help me. Thank you!