Download

Make Top down camera center on Unit

ok so I have a top down camera that the player can pan around the screen with. I want to have that camera center/focus on a unit (with a blend) when a unit is clicked on.

What is the best way to make this happen? I don’t want the camera to rotate at all. I just want the unit the player clicked on to be centered with the current angle of the camera.

Hi man,
Make yourself a new blueprint with a camera component,
you define a custom event to move the camera to a location , and maybe a widget to detect when the mouse is near the border to move the actor,

When you click on a unit you should check how many units and calculate the middlepoint, and say to the camera to move there.