Hi everyone, I need some help creating a top-down gameplay camera that only moves forward in one axis (forward) and if player goes left/right or back, it doesn’t move,.
Hey @ricksnun75!
You can check out this post of mine
It’s on the almost exact same topic! You can adjust the camera transform to make it top down.
Now, one thing different is that you not only want the camera to move on one axis, but also want it to move in one direction. And how you’d adjust the blueprint code I provided to achieve that depends on what kind of behavior you want. If you’re already not allowing the player character to move backwards, you can just leave it as it is. But if the player character can move backwards, there are other things you’d need to specify. For example, if the camera was to move forward every time the player character moved forward, then the distance between the camera and the player character would change every time the player gave backwards movement input. You’d probably wanna start moving the camera again if the player character’s location on X axis (the orientation may vary) is greater than a float type variable which saves the character’s location on X axis the furthest it has ever been. Things like that.
So, hope these help!
Just a thought, you could also have the cameras placed on the level on reels, and have one move on a reel in one direction. I experimented a bit with old RE / SH style cameras a long time back like that.
Benefit is you can use the player camera manager to transition to a camera in a level, rather than have one camera on a character.
Thank you so much. That helps
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.