• 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

[Tạo 2D Platformer Game với Godot] Part 3: Character Design

AnonyViet by AnonyViet
January 27, 2023
in Tips
0

In this third part, we will proceed to design the character so that it can move, animate it.

Join the channel Telegram of the AnonyViet 👉 Link 👈

In this part, it’s not too difficult, I will explain the code closely so that you can understand it more easily.

Tilemap

Before that, in the previous post, I showed you how to design the level, but that part we have not added CollisionShape to the tilemap.

So, now all you need to do is add it or else our character will fall to infinity because CollisionShape has not been added.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 31

First, you go back to the Tileset section and then choose for yourself Collision.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 32

After selecting, click 1 box below.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 33

Then click on the square (the collisionshape square is next to the collisionshape polygon).

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 34

Then the square is green.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 35

Then click on the box next to it twice and you will see that the cell we just selected has been filled with a collision shape.

Please continue to finish the Region we have selected.[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 36

Like I’ve finished filling here, because I only use these regions, I can only fill this one, not fill it all because it takes time + no longer uses it, so it’s a waste.

Character

About the character, you can download it at the following link: 3 Character Sprite Sheets

Here, I will use AnimatedSprite, not Spritesheet because this character Art is separated so I can’t use SpriteSheet.

Download & Install

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 37

You download and then go to the Assets folder to create a new folder named NhanVat (this is where the character art is located).

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 38

After that, you copy all the files from the downloaded zip file into the character folder

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 39

After you are done, the Editor will display like this.

Character creation

Coming to the most important part.[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 40First, to create a character you need to create a new scene by clicking the button on the image.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 41

Here I do not add it to a scene like the image above because doing so will take time to redo.

Therefore, I create a new scene and can Instance (add the created scene to another scene) it into other Scenes quickly.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 42

You add your own Root Node is Kinematicbody2D (This node is the node that Godot defaults to as the Node used to create characters because this Node contains functions to help us move.In addition to this node, there are also 2 types of Body Nodes. other are Rigidbody and StaticBody).

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 43

After that, I renamed the Original Node to Player and added 2 more AnimatedSprite nodes (I use it instead of Sprite because the art I downloaded has many Animations and is divided into many images, so I will use AnimatedSprite instead of Sprite) , CollisionShape2D.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 44

You click AnimatedSprite in the Inspector panel select [empty] -> New SpriteFrames
[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 45

Then click on the newly created SpriteFrames.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 46

Then the AnimatedSprites tab will appear.

You will see the Animations column on the left is a list of Animations.

On the right are the frames of Animation.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 47

I will change the default to dungyen by double clicking on it.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 48

Next, I will select the button on the image to add the sprite.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 49

Here, I am creating a stationary Animation so I will find the appropriate Animation. In here idle by standing still.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 50

After that, a new table will appear and I will edit it properly.

You notice on the top left there are 2 adjacent lines are Horizon (horizontal) and Vertical (vertical) . You have to adjust it properly to select frames.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 51

Here, my animation has 4 frames. Horizontally, it has 4 pictures so Horizon is number 4, Vertical is only 1 so Vertical will be number 1
[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 52

Then you select each cell in order from left to right because it calculates the frame order in the order you choose. Then press Add Frame.

[Tạo 2D Platformer Game với Godot] Part 3: Character Design

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 54

This will be the interface after adding.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 55

Then you add the corresponding animations as shown on the table for yourself.

This is also an exercise for you.

Here, if you don’t know which photo to choose, I will say it below:

  • run = run
  • chet = deah
  • jump = jump
  • tancong = attack1

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 56

To run Animation, you can select Animation in the box Animation and tick Playing to run.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 57

If your character is blurry like the picture, you need to Reimport 2D pixels again.

[Tạo 2D Platformer Game với Godot]  Part 3: Character Design 58After Reimport our character will be sharper.

The article achieved: 5/5 – (100 votes)

Tags: characterDesignGameGodotPartPlatformertạovới
Previous Post

9 Best Action Camera Apps available today

Next Post

Your Wifi will be stronger if you choose the right Channel

AnonyViet

AnonyViet

Related Posts

Instructions for receiving 1 month of ElevenLabs Creator for free worth
Tips

Instructions for receiving 1 month of ElevenLabs Creator for free worth $22

May 25, 2026
How to create beautiful studio-like preschool graduation photos for your child
Tips

How to create beautiful studio-like preschool graduation photos for your child

May 21, 2026
Instructions on how to change iPhone fonts beautifully with Lara
Tips

Instructions on how to change iPhone fonts beautifully with Lara

May 20, 2026
Create images of guardian mascots using AI according to year of birth
Tips

Create images of guardian mascots using AI according to year of birth

May 20, 2026
Try the Shopee Profit Calculator now, avoid the risk of selling at a loss
Tips

Try the Shopee Profit Calculator now, avoid the risk of selling at a loss

May 19, 2026
Prompt converts photos into extremely impressive children’s drawings
Tips

Prompt converts photos into extremely impressive children’s drawings

May 17, 2026
Next Post
Your Wifi will be stronger if you choose the right Channel

Your Wifi will be stronger if you choose the right Channel

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to transfer files between Windows and Mac over LAN

How to transfer files between Windows and Mac over LAN

May 26, 2026
Instructions on how to turn text into stickers on Gboard

Instructions on how to turn text into stickers on Gboard

May 26, 2026
Instructions for receiving 1 month of ElevenLabs Creator for free worth

Instructions for receiving 1 month of ElevenLabs Creator for free worth $22

May 25, 2026
Instructions on how to turn off YouTube Shorts on iPhone

Instructions on how to turn off YouTube Shorts on iPhone

May 24, 2026
How to transfer files between Windows and Mac over LAN

How to transfer files between Windows and Mac over LAN

May 26, 2026
Instructions on how to turn text into stickers on Gboard

Instructions on how to turn text into stickers on Gboard

May 26, 2026
Instructions for receiving 1 month of ElevenLabs Creator for free worth

Instructions for receiving 1 month of ElevenLabs Creator for free worth $22

May 25, 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

How to transfer files between Windows and Mac over LAN

How to transfer files between Windows and Mac over LAN

May 26, 2026
Instructions on how to turn text into stickers on Gboard

Instructions on how to turn text into stickers on Gboard

May 26, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

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