Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /var/www/vhosts/bilgigunlugum.net/httpdocs/index.php on line 43
Godot Game Engine

SDL3 Oyun Programlama ve Godot Oyun Motoru sayfalarımız yayında...

Ana sayfa > Oyun programlama > Godot game engine > Camera tracking

Camera tracking

When the Player moves out of the game window, to provide that the camera follow Player and show the area around the Player in the game windo, perform the following steps:

1. Drag and drop the "Camera2D" Node into the "Player" Node. Thus, the camera automatically follows the Player.

2. While the "Camera2D" Node is selected, in the "Inspector" tab, mark the "Position Smoothing" Enabled value as On.

3. LSave the scene with Ctrl-S and run the game. When the player comes out of the game window, the camera follows and moves the image to the game window.