• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

[Lập Trình Game] Lesson 4: Create a character tracking camera

AnonyViet by AnonyViet
June 1, 2024
in Tips
0

Next in the series Game programming with Godot, today I will guide you to create a character tracking camera. When the character moves on the screen, we will easily follow our character.

Join the channel Telegram belong to AnonyViet 👉 Link 👈

Let's get started:

Camera

In the previous lesson you did, you will see that when you run the game it will look like the picture

Complete game design using godot

And this is after the camera was installed

[Lập Trình Game] Lesson 4: Create a character tracking camera

How to create a character tracking camera

So today I will guide you to create a camera for your character.

First, in Player, you find and create your own Node Camera2D

godot camera

Then, when you zoom out, you'll notice two squares:

  • 1 below is incomplete.
  • The one above is complete and The complete thing is your camera frame.

[Lập Trình Game]  Lesson 4: Create a character tracking camera

If you run the game it stays the same unchanged so we need to edit again setting belong to camera. camera

Open your part Limit beside setting camera2d

[Lập Trình Game]  Lesson 4: Create a character tracking camera

What is limit? Limit is the limit of the camera, for example: left is the coordinate where it will go left

To make it easier to understand, please pay attention to the image below

[Lập Trình Game]  Lesson 4: Create a character tracking camera

The vertical green line is the number 0 and that's it coordinates x and the red line going to the left is y coordinate

For example: You want cameras move to 0 x axis If you stop and don't move further, you can edit it again in the box Limit part left is 0

Ah must turn on Current it just works

[Lập Trình Game]  Lesson 4: Create a character tracking camera

When you turn it on, some you will see changes and some you will not see anything so let's continue

Part top I also let it 0 so that it does not exceed the red line limit

Part Botton I let it 325 and how to setting bottom

Friend zoom up the section you want it limited to bottom

[Lập Trình Game]  Lesson 4: Create a character tracking camera

You just keep looking for landmarks and that's it zoom You will see a number in the left column and then fill it in bottom like photo

[Lập Trình Game]  Lesson 4: Create a character tracking camera

And then adjust the zoom for yourself X 1 – Y 1 -> X 0.5 – Y 0.5

[Lập Trình Game]  Lesson 4: Create a character tracking camera

Run the game and you will see the difference

And you can see our game screen has changed

[Lập Trình Game]  Lesson 4: Create a character tracking camera

If you find it too big, adjust it 0.6- 0.8 Please. If you don't want to adjust it and find it too loud, just adjust the Player to make it smaller.

And one more part is that if you pay attention, you will see that when you move, the camera moves along and in godot also supports you to add a mode that when you move a segment, the camera will move.

That part: Drag Margin H – Drag Margin V

[Lập Trình Game]  Lesson 4: Create a character tracking camera

Click on those two and you will see the difference.

And when moving, you will see that when you reach a position, the camera will move with the character, so is there any way to adjust the position limit so that the camera will move the character? And of course, there are people looking for you Drag Margin live setting camera. camera

[Lập Trình Game]  Lesson 4: Create a character tracking camera

And it will not show a frame to let you know how limited it is, so you can turn it on for yourself as follows:

Find Editor > enable Draw Drag Margin Okay and it will display and you can adjust it as you like

[Lập Trình Game]  Lesson 4: Create a character tracking camera

So I have completed the instructions for monitoring the character screen by configuring the Camera. You should see the word post 0 Come to this article to easily follow the steps.

Previous Post

Replacing Siri with ChatGPT-4o: A smart solution for voice interaction

Next Post

Best Game Torrent Websites

AnonyViet

AnonyViet

Related Posts

How to create a virtual Pet, a virtual character running around on the Desktop to relax
Tips

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
15 cách tăng tốc Windows 10 nhanh như gió
Tips

15 cách tăng tốc Windows 10 nhanh như gió

October 14, 2026
How to create Guest mode Shortcuts for Chrome and Edge
Tips

How to create Guest mode Shortcuts for Chrome and Edge

October 13, 2026
Test what breed of dog you are through 10 multiple choice questions
Tips

Test what breed of dog you are through 10 multiple choice questions

October 13, 2026
Fliqlo – Create digital clock screens on Windows and phones
Tips

Fliqlo – Create digital clock screens on Windows and phones

October 12, 2026
SynthID Detector: Genuine AI checking tool from Google
Tips

SynthID Detector: Genuine AI checking tool from Google

October 11, 2026
Next Post
Best Game Torrent Websites

Best Game Torrent Websites

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
How to create a virtual Pet, a virtual character running around on the Desktop to relax

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

October 15, 2026
How to receive 22k from Viettel Tammi on the occasion of 22nd birthday

How to receive 22k from Viettel Tammi on the occasion of 22nd birthday

October 15, 2026
MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
How to create a virtual Pet, a virtual character running around on the Desktop to relax

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

October 15, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
How to create a virtual Pet, a virtual character running around on the Desktop to relax

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply