I have a ue5 Side scroller character that moves on the x axis , when i click D it move forward and A moves backwards, and I set it to orient to movement direction, but when I aim I want the character to strafe and still keeps the rotation , meaning, if the character ia facing right if I aim move backwards I need the character to strife left And when I unaim I need to rotate the the direction , and if the character facing left I need it the strife right
Paste a screen shot of your logic, I help.
If you are using orient to movement this would work fairly providing a decent ux for player.
- Movement input decides the orientation of character.
- Upon Aim(shoot) character turns to target independent from movement input.
Couple of heads up about the subject. If you are making it with 2D sprites or 2.5D in animation you should consider direction of velocity for choosing right animation or trajectory logic.
However if you don’t use orient to movement and make rotation manually you can simply can have more control over rotations and make rotations from same side or preferred side (let’s say camera facing side etc.)
1 Like