• 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 8.1: Adding a scroll button

AnonyViet by AnonyViet
January 27, 2023
in Tips
0

In this part, it is a fork, which means it will not be very related to the main game making, but I think there will still be people who need it.

Join the channel Telegram of the AnonyViet 👉 Link 👈

Then in this section, I will show you how to add scrolling buttons for those who plan to export the game to mobile.

Art

The first part will be the art part, you can download it for yourself at the following link: Onscreen controls (8 styles)

[Tạo 2D Platformer Game với Godot]  Fork part 1: Add a move button

You create yourself a new folder named GUI in the Assets folder.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 20 . scroll button

In the GUI folder create an additional Buttons folder (this is where the buttons are).

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 21 . scroll button

Then open the zip file you just downloaded into Sprites.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding 22 . scroll button

UnshadedDark.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Add 23 . scroll button

Copy yourself photos 24,25,26 and put them in the Buttons folder.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding 24 . scroll button

As above is fine.

Knot

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 25 . scroll button

Next, you go through the Player’s scene and add yourself a new node, TouchScreenButton (this is a dedicated touch screen button for mobile games).

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 26 . scroll button

Then I created 3 more TouchScreenButton nodes and renamed it Quatrai, Quaphai and Nhay respectively. Each name has its own meaning.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Add 27 . scroll button[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 28 . scroll button

Here I select the button to the left then I drag the image to Normal so it shows the button. At the thường is the image when it is normal, and the Pressed is the image when you click.

You can make it more detailed by clicking the button and the image will be darker or lighter to let the user know they have clicked.

The Action is the same action as on the code Input.is_action_pressed(“ui_left”) or something but here you just need to fill it in and then click it automatically. And if on the code you use the above actions, when you click it, it will run that action on the code.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 29 . scroll button[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 30 . scroll button

I adjusted for the other 2.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 31 . scroll button

Oh, you guys add a new node called CanvasLayer

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 32 . scroll button

Then I will rename as GUI and leave the other 3 nodes in.

The reason I do that is because when you leave the other 3 nodes outside, it’s like the other nodes will move as usual, but if you leave them inside CanvasLayer then it will only show up in the UI section.

[Tạo 2D Platformer Game với Godot]  Part 8.1: Add 33 . scroll button

Mine already shows up, but you’re sure clicking it won’t work unless you run the mobile game test

[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 34 . scroll button

Therefore, you go to Project -> Project Settings -> Find Pointing.
[Tạo 2D Platformer Game với Godot]  Part 8.1: Adding a 35 . scroll button

Then tick the one on the image to be able to click.[Tạo 2D Platformer Game với Godot] Part 8.1: Adding a scroll button

Then run the game and enjoy.

You should also adjust the move button so that it fits your eyes.

Summary

So in this part, I showed you how to add a scroll button in the Game.

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

Tags: AddingbuttonGameGodotPartPlatformerScrolltạovới
Previous Post

Instructions to Lock Web Browser with Password with Browser Lock

Next Post

Management document form for IT Manager

AnonyViet

AnonyViet

Related Posts

Windows 7/8.1/10 users will be upgraded to Windows 11 for free
Tips

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving ChatGPT Plus for 1 month for free in 2026
Tips

Instructions for receiving ChatGPT Plus for 1 month for free in 2026

July 28, 2026
Some reasons I don’t like Windows 11
Tips

Some reasons I don’t like Windows 11

July 27, 2026
Instructions on how to get free Facebook white ticks
Tips

Instructions on how to get free Facebook white ticks

July 27, 2026
Collection of Windows 11 wallpapers for computers and phones
Tips

Collection of Windows 11 wallpapers for computers and phones

July 26, 2026
Don’t install leaked Windows 11
Tips

Don’t install leaked Windows 11

July 25, 2026
Next Post
Management document form for IT Manager

Management document form for IT Manager

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 2026
What is quantum resistant cryptography? Why must the Internet change?

What is quantum resistant cryptography? Why must the Internet change?

July 29, 2026
Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 2026
MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

MSI laptops are not just for gamers: Which line is suitable for students, office workers and creative people?

July 29, 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

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

Windows 7/8.1/10 users will be upgraded to Windows 11 for free

July 30, 2026
Instructions for receiving the free Certified LLM Security Expert certificate

Instructions for receiving the free Certified LLM Security Expert certificate

July 30, 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