"Camera Zoom & Input"
By: Andres Gutierrez
I recently worked on implementing the camera zoom and the input system. The camera caused me some troubles trying to figure out the best and most efficient way to allow the player to zoom in and out. I decided the best way is to use the Spring Arm target arm length variable to allow the camera to move. This made it a lot easier since you only have to adjust the one variable to let the camera move almost on a tether to the player in a straight line. This is simpler than using complex max blueprints/code to smoothly adjust the camera movement.
Since there was not a proper input system set in place I also decided to use that to allow the player to use the mouse scroll wheel to adjust zoom on camera. I first tried to use the input system made in the Project Settings -> Input category, however that has been deprecated. This caused me issues so I erased all code using the Project Settings Inputs and started using the new Enhanced Input system. I did this by making several inputs with a 1DAxis and made modifications for it. This system proved to be a little more complex but offered more features to make implementation easier in the Unreal editor.
Celestial Nomad
Resurrected hero tasked by the Phoenix Order to save the universe from dark forces.
Status | In development |
Author | Mythic Mana Games |
Genre | Action, Adventure, Role Playing |
Tags | 3D, Dungeon Crawler, Fantasy, Indie, Sci-fi, Story Rich, Team-Based |
More posts
- "Ranged Enemy Movement"Jul 05, 2024
- "Player & Enemy Sounds"Jun 27, 2024
- "EQS Setup"Jun 21, 2024
- "Ability Replication"Jun 18, 2024
- "Enemy Behavior tree"Jun 13, 2024
- "Attack Replication"Jun 13, 2024
- "Boss Room & Main Menu Upgrade"Jun 05, 2024
- "Party Visibility"May 31, 2024
- "Cheat Manager"May 29, 2024
- "Multiplayer Sessions Subsystem Using Steam"May 25, 2024
Leave a comment
Log in with itch.io to leave a comment.