Top Down Shooter-1

This tutorial explains to you how to create a Top-Down Shooter game in GDevelop. If you are a beginner or you have never used GDevelop before, this might be a great place to begin.

In this tutorial, you will learn how to :

  • Create a new project
  • Create a new scene

Series

You are reading Part 1 of the Top-Down Shooter Tutorial.

This tutorial will help you to begin to use GDevelop. You will create a Top-Down Shooter game where the player shoots and kills the enemy. Note that you can read the Getting Started page to get an overview of the software. It explains the main concepts and describes the interface of GDevelop.
You can get the completed project here. You can get all assets here.


Step 1. Install GDevelop

If you haven't already installed GDevelop, you can download and install it.

Step 2. Create a new project

At the very beginning, you should create a new project. A project is a collection of sprites, sounds, scenes, behavior, etc. that is used to build a game. To create a project:

  1. Launch GDevelop
  2. Click on Create a new project
  3. Select a folder for project
  4. Select Empty game

Step 3. Add a new scene

A scene is like a view of a game. All the levels, menu, setting, and everything we see are scenes. All the sprites, UI, music, sounds, etc. are run and used in a scene. We can't build anything if we don't add a scene. To add a new scene:

  1. Expand the Project Manager (if it is not expanded)
  2. Select Click to add a scene
  3. Then click on the scene to open it

GDevelop runs the scene from the top at the beginning of the game. So, if you want to show the menu at the beginning of the game, keep the menu at the top of the scene list.

Step 4. Add objects in the scene

An object is what makes up the scene. Players, backgrounds, enemies, etc. all are objects. To add objects in the scene:

  1. In the Object Panel, click on Add a new object
  2. Select Sprite
  3. Name the object “Player”
  4. Double click on the Player to open Object Editor
  5. Click on Add an animation.
  6. Click Add
  7. Select the “Player Idle 1.png” asset. This will be our Idle animation
  8. Again, click on Add an animation
  9. Click Add
  10. Select the “Player Walk 1.png” and “Player Walk 2.png
  11. Click on Apply
  12. Drag this object to add it to your scene

Step 5. Add a behavior

Behavior is like a script of an object. An object acts according to the behavior attached to it. To add a behavior to Player:

  1. Double click on Player
  2. In Object Editor, go to the Behaviors tab
  3. Click on Add a new behavior
  4. Select Top-Down Movement
  5. Click on OK

A Top-Down Movement gives you a movement of walking right, left, up, and down. Just like olden times GTA.

Step 6. Preview your game

We Preview our game to find errors in our games. It is very important to Preview from time to time in order to prevent any issues. To preview your game, click on the Preview button in the toolbar. Now, use arrow keys to move your player. You can see that the Player moves when you press an arrow key. This is due to the behavior we added to our Player.


Conclusion

In this part, we created a Player which can move in any direction. In Part 2, we will be creating a gun for our Player which rotates around him. We will also be making a camera follow our Player.