How can I flip my camera around in my top down game using blueprints

Hi i,m currently trying to make a multiplayer top down game and my when one of my character spawn at 1 side of the map the camera keeps facing the wrong direction rather than facing where the player is facing. Is there any way to flip the camera so it is facing the right direction

Depends how your camera is set up.

Is it attached to a spring arm, following the control rotation, etc.

You can find a rotation using a Forward, Up, and Right vector. Depending on what you mean by flip your camera around, it could be negating the forward, right, or up vector.

Or With control rotation, simply rotating the control 180 degrees.

My best guess, is you camera is following the control rotation, have the camera arm follow the pawn rotation.

Hi im currently using a spring arm that the camera is attached to witch in tern is set is attached to the pawn and for the rotation I mean that, when I spawn in I want the camera to flip 180 degrees on the X axis so it is facing the same way that my character is facing.

I suggest trying to use a separate camera actor. Create a blueprint / actor - add a camera, compile and save and close it. Now you just need to work out the logic of how this camera “moves” in relation to the player. If it is dragged into the level bp, with that camera actor still selected now you can right click in the event graph of the level bp and get a ref to it. Drag off an Event Begin Play (Event Tick if Event Begin Play doesn’t work out) and to Set View Target With Blend and connect that CA ref as the new view target. Add a get player controller node and now with that level loaded you can manipulate that camera to get the look you are after.

From what I have seen…adding offsets seem to make for smoother camera movement.

Ok, very simple. Attach the spring arm to an scene component at 0,0,0 on your character.

Then add relative 180 degree rotation to the scene component when you spawn on the other side :slight_smile:

Easy peasy. No need to worry about the rotation at an offkilter.

1 Like