Shoot accurately at the target

Hello everyone! I’m trying to create a simple top-down game. Help me at least with advice on how to proceed, but if you have a solution, please share this information. I’ve created logic where the character turns to follow the cursor, and while it suits me, I can’t achieve precise aiming at the target (cursor). In the video, you can see that when I shoot, the “bullets” don’t go where I want. What should I do to make the character shoot accurately at the target?

question.mkv (1.7 MB)

Hello!

The bullets are going in a straight line downsight of the gun, but the reticle is not aligned with the barrel of the gun. It’s offset from it.

how can I fix this?

I’m not 100% sure how you set up your Blueprints, however, two ways you can do this are:

  1. Adjusting the LOOK_AT_ROTATIONS to align differently. (Maybe with the downsight of the barrel instead of the character holding the gun).

  2. OFFSETTING the rotation. (By combining rotators).

Ahh a top scroller. Well if it was me I would try to lock the angles of rotation, aka Ikari Warriors and Guerilla Warfare arcade. Like have it snap at 8 possible angles. Unfortunately for the home consoles we never got the actual rotary joysticks from Ikari Warriors and Guerilla Warfare. So then perhaps one button rotates clockwise one spot, one button rotates counter clockwise one spot.

How are you drawing the reticle? Looks like you’re not offsetting it correctly. Subtract half its size.