🎮 Tutorial Godot do Zero 2025 #5 – Câmera Seguindo o Jogador
Implementing Camera Movement in Game Development
Initial Setup and Collider Visibility
- The video begins with a recap of previous animations where the player character can walk and jump, and now focuses on implementing camera movement to follow the player.
- To test without distractions, the collider behind the player is hidden by toggling its visibility off, allowing for a clearer view of the player during testing.
Adjusting Camera Area
- The project configuration settings are adjusted to double the width and height of the camera area from 150x100 to 300x200 for better visualization.
- A collider is duplicated using Control+D; however, both colliders remain linked until one is made unique, allowing independent resizing.
Creating Level Blocks
- The process of creating level blocks involves making them unique so they can be resized independently while maintaining their functionality within the game environment.
- Several blocks are created to form a staircase-like structure for the player to navigate upwards.
Testing Player Speed
- After constructing basic level elements, it’s noted that the player's speed is too slow; adjustments are made in the player's script to increase speed from 30 to 80 for smoother gameplay.
Basic Camera Following Mechanism
- The simplest method for making the camera follow the player involves adding a Camera2D node as a child of the player node within Godot's scene hierarchy.
- By adding this camera as a child, it automatically becomes active in place of any default cameras previously set up in Godot.
Implementing Camera Limits
- To prevent showing areas outside of designated gameplay space, limits are set on camera movement by adjusting left and right boundaries based on desired gameplay constraints.
- Specific limit values are assigned: zero on left (preventing leftward movement), while further adjustments will be made for upper and lower limits later.
Finalizing Camera Boundaries
- Lower limits are discussed; instead of setting zero (top), an appropriate positive value (200 units downwards based on camera height) is established to restrict downward movement effectively.
Enhancing Gameplay Experience
- Additional features like position smoothing can be enabled on the camera for more fluid transitions when following player movements, enhancing overall gameplay experience.
Setting Maximum Right Limit
- A maximum right limit is determined based on current player coordinates (X = 447), ensuring that players cannot move beyond defined boundaries once implemented.
Conclusion and Next Steps
- The video wraps up with plans for future content focusing on customizing input controls from arrow keys to WASD keys for improved user experience. Viewers are encouraged to engage with likes and subscriptions.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.


