BasicGame - Create first asset scene
- In Godot right click assets directory and add a new folder named
scenes
.
- Right click the new
scenes
folder and add new scene and name ittest_scene
.
- Select the type of node to be a
Sprite
by usingOther Node
for this scenes Root Node.
Save the scene Ctrl+S
after it opens and the file will be created test_scene.tscn
- Find an image on disk and drag it into the Godot path.
res://assets/img/
. In the example I have dropped indrac_vp.jpg
.
Now select the Sprite
In the inspector select the image in the texture dropdown. Quickload you will see your image, so select it there.
Use the new sprite in scene:
Open the
BaseMode.tscn
in GodotOn the BaseNode parent right click to
Instance Child Scene
Select the sprite
test_scene
Run the game and you’ll see the
test_scene
on screen.