How to constantly move camera on x axis?

Hey Guys,
In my game, I want to have a camera that is constantly moving forward but can still see the player and then when the player goes off screen they die. What I am stuck with is that I don’t know how to make the camera continuously move forward. Any help will be great. Also, I am new to this so you may need to explain thing a bit more for me.
Thanks,
Ben

You can use PlayerCameraManager for that.

Create your PlayerCameraManager class. Set it in your PlayerController class.

In PlayerCameraManager override function BluprintUpdateCamera. It will update camera every tick.

Now just set new world position to it. For example it can be like:

CameraLocation.X + (GetWorldDeltaSeconds * CameraSpeed)

Hey Redbox,
Thanks for the response but I don’t really understand what you![alt text][1] are talking about with PlayerCameraManager class. I forgot to mention in my first post that I have setup a separate camera to be used instead of the stock one in the third person example and I will put a photo of how I set that up. If you could explain a bit more or show some photos that would be great.
Thanks,
Ben

I’m still a bit confused as to the PlayerController class bit but this is what I have done so far and I think I am on the right track, maybe?

Thanks for the help Omnyth. Just not sure how you connected the delta seconds with the delta location. When I tried I kept getting this. Sorry if it is really simple. I will play around with it a bit.

Dude! Thank you so much for the help. Because my camera was at a -45 pitch value the camera was going straight into the ground but then I just added 1 to Z as well and it fixed it. Thanks again!

This will add to the actor’s current location every delta second. Make sure that when you create “addlocaloffset” that you choose the one that references your already created camera.

It is simple, but I can understand why you would be confused just getting into blueprints lol.

Right Click and type “Vector + Float” and attach the green to the green. The upper portion of it “X/Y/Z” will be the amount of translation your actor moves every float amount (delta ticks/second).

If it’s confusing I can explain it a bit simpler in terms of just what you need to do. I’m just trying to help you understand the reason behind it :stuck_out_tongue:

Also, you might be better off just attaching the camera to the character, or at least doing this in the character bp. You’ll have a bit more control and less difficulty referencing things that way.