Third Person Template to Top Down (Camera Help)

Hey, I am trying to create a top down game and I am using the third person template. The reason I am using the third person template is because the movement is similar to what I want, and the camera is also similar to what I want.

How can I lock the camera up/down rotation? I want the player to be able to move the camera around the player, just not up or down. I pretty much just want the default third person template, with a camera higher up in the air that is facing down at about 70 degrees, which still rotates around the character like the template and cannot be moved up or down.

Thanks in advance!

I’m not 100% sure if that will get you the entire effect you’re looking for but try to just get rid of the “AxisEvent LookUp” and “AxisEvent LookUpRate”.

Those handle the player input for up & down. Deleting that code should disable the player from changing the angle of the camera.

Setting it up at the angle you want should therefore lock the camera at that angle.

Try that out and if it does something wrong please to reply with what’s going wrong and I’ll take a closer look at what’s going on in engine.

Cheers!

Ok, that stopped the looking up and down, but how do I actually rotate the camera up now? It is I tried rotating the boom, but it does not move.

Thanks btw!

You should be able to set the default orientation / location in the viewport of your character BP by giving the camera boom the desired rotation and length.

I can change the values of the camera boom rotation, but it does not do anything or move at all.

Are you sure?

Could you show me which values you change and what your component steup looks like?

http://imgur.com/a/wey4P This is the setup for the thirdpersoncharacter blueprint, The only way I can rotate the camera is by disabling the Use Pawn control rotation, but then the movement is all inverted and weird.

Oh yea indeed! I forgot the template is using that!

Untick… I think roll was it? Ignore the up / down axis from the control rotation (which is the arbitrary rotation of your controller to keep the camera the same easily between possessed actors) and it’ll stay at whatever you enter initially :wink:

I un-ticked use pawn control rotation and that allowed me to rotate the camera (nothing else did), but when I moved it turned the whole camera which was not what I wanted, so I ticked use controller rotation yaw on the thirdpersoncharacter which allowed me to rotate the camera and the person separately, It is mostly fixed now, but now when I move anywhere from forward, it still uses the forward animations but just moves left/right/back.

You need two axis from the control rotation.

All you want to ignore is up and down. Nothing else.

Sorry, how would I do this? Not really sure what you mean, I can move the camera fine, but the character does not move fine.

Please take a close look at the current code and this answer.

So I should use set control rotation on my camera?

I disabled use controller rotation yaw, I cant move my camera though, and if I press one of the wasd keys, It turns to that direction according to what direction it started, for example, I press a, I turn 90 degrees left, I press d, I turn 180 degrees around