

You can use the default sprite for godot called icon.png or you can bring in your own. Adding our assets for our Godot 2D top down movement Re arrange them so that they are nested the way it looks below. Once you have added all the nodes you should have a hierarchy with all the nodes. KinematicBody2D, CollisionShape2D, Sprite, AnimationPlayer. Right click on your Player and add the following nodes. In order to do this click on the + next to the game scene.Ĭreate a 2D scene for our new game object and rename it to Player. We want to create a new scene for our Player. Since Godot uses scenes to separate individual game objects.

You now want to hit ctrl+s in order to save your scene. Rename your node to Game so that it looks like this. Creating 2D scene in our 2d top down game If you wish to skip ahead and not go through the whole tutorial you can get the project files here: project files Don’t like reading? Watch the video. Animated player 2d top down movement Where to get the project files You should have a player that can move in the following fashion. At the end of this tutorial you should have a character which you can move using the arrow keys on the keyboard and your mouse. In this tutorial we will be covering the basics of KinematicBody2D, sprites, spriteanimation, GDscript and various movements we can achieve with godot in a top down game view.

A Godot 2D top down movement tutorial for beginners.
