บทความ

How to print Hello world in Godot

รูปภาพ
  How to print Hello world in Godot first step open yor project. create scene i use Node2D right click Node2D then click Attach Script click create like this this function will run one time when run game this function will run loop type print("Hello world") in function _ready(): will print Hello world one time then press f5 or click run project button choose select current change name scene what you want then click save Hello world will appear in this. ok it's finish.

How to create button and click exit game in Godot

รูปภาพ
  Hi everyone to day we will show you about how to create cutton and click exit game in godot ok let's go . open your project first create root tree i will use 2D scene right click Node2d choose Add Child Node type button in search bar then choose Button change size button up to you type text for showing text in button after that we will attach script for exit game right click Node2D choose attach script then press create left click button once click Node choose pressed() for create function when press button will create some script we wiill create exit game when pressed . Click create. add get_tree().quit() in this function and save scene click save select current press f5 for test ok it's work now when we click button game willl exit. thank you very much for reading my article  

How to add button in godot and print Hello World when click

รูปภาพ
 hi everyone today i will show you how to create button in godot and click button to print Hello world. we will not waste time ok let's go the first open project before create button click Node2D then this window will appear. type button in search bar click button there is child in Node2d  this button too small you can change size with scale mode  or press button. ok i am very satisfied for this button. you can press f5 for test your button. it'is look like button hahaha. then we will add script for change scene right click button and click Attach Script click Create button you will see this       change to Node tab and click pressed() for create function when we click this button typing print hello world in _on_pressed() function then press f5 for testing when click button Hello world will appear in command when you click each time. like this thank you very much for reading my article i will upload article for help you basic how to in godot and so on...