Adding a Sprite in Godot

 We start with a basic 2D scene.


In the Scene dock, click the + to add a Sprite2D as a child of our Node2D.


Drag and drop a new image file into the FileSystem dock.


With the Sprite2D node selected look into the Inspector dock. See where it says Texture <empty> and a check mark. Click on the check mark.


In the pop-up menu that appears, click Load...

Next pick you image file. It will appear at the (0, 0) location. So reposition it to appear in the game screen. Then when you run your scene, you now have a lovely game sprite.


Next Topic: Adding a Background

Comments

Popular Posts