My game is a top down game and the character turns according to the rotation of the mouse. However, when the mouse is in certain areas of the screen, the character does not look exactly there but a little to the right or left. Can you help?

Hey @AKUMA3538! Welcome to the forums!

So there isn’t really a lot we can understand from this picture. Do you think you could take video using OBS then upload it to youtube under “unlisted” and link that here, so we can see it in action?

Also pictures of any relevant code will be very, very helpful!

Get back to us soon! :slight_smile:

I’m working on a similar type game, of your aiming is setup like mine, Wich it sounds like it, your using the “get hit result under cursor by channel node” the get look at rotation to set the actors rotation. By default, the hit result under cursor responds to the visibility channel. You’ll want to ensure that any objects or surfaces that you want to be able to aim at, are set to block visibility. But this has its issues as well. What I have done, and has worked pretty well, is my landscaping or ground plane meshes, are set to block visibility, for general movement control for my character. However when shooting projectile, I call the “get hit result under channel” using the camera channel. I have objects like enemies and medium to larger level props block camera so they will be aimed at when shot. Smaller detail props I don’t track as that causes weirdness with both the general movement and aiming projectiles. You’ll have to play around with these settings to decide what works best for you. I hope this will help, let me know if you need more in detail advice for a specific problem.

Side note…on YouTube, there is a channel, Alamars Dev Domain, has a whole series on setting up a top down shooter like this using c++ and GAS. It’s a decent bit of work and a lot of knowledge but is a great starting point and goes over alot of stuff like this and much more. Helped me learn a lot about the engine and unreal c++ when I first began using it. I think he still posts regularly too. Highly recommend checking it out