< All Topics

Unit 5 – Platform and Player Behavior

Items In This Unit


  • Platform and Player Tutorial

The Platform and Player Tutorial

So far, we have learned how to add conditions (statements when something occurs) and actions (what to do when a condition occurs). Next, we will learn about object behaviours. Object behaviours are built-in characteristics that can be applied to specific objects. This is to save you time to program the behaviours yourself. Most games genres reuse the same standard behaviours from one game to another. There is no need to reinvent the wheel and to re-create these behaviours repeatedly.

The platform behaviour is a built-in feature of GD which provides the player with standard platform behaviour which includes basic motion and movements including jumps. When you add a platform and assign it the platform behaviour you have the basic elements of a platformer game.

Alright, let’s get started. The objective of this exercise is to get you thinking about how you might want to design a platformer game.

The following table describes the steps needed to start creating a platformer video game. Note that we will not be showing screenshots for every single click as by now you should be more familiar with GD.




Open GDevelop on your computer.


Click on Create a new game


Choose Empty game


Create a new scene as before calling it “Level 1”.


Double click on the new scene. You should see the following screen.


Click on “Add a new object”, then choose “Sprite”


For object name enter: GrassPlatform


Click on “+ Add an animation”

You should see the following screen.


Click on “Edit with Piskel”


You should see a screen that looks like this..

If you don’t locate and click on the following icon:

Enter the following for the width and height of a sprite we will just make.

Width: 128
Height: 16
Click on Resize.


Click on the Paint bucket tool as indicated below

Click on the colour selector tool (black square) as shown below to change the primary colour. 

Pick a shade of green to represent the colour of grass.


Next, with you, the mouse pointer clicks anywhere within the sprite’s rectangle. Your screen should look like this.


At the very top of the screen rename the default name to say “grass” instead of “NewObject”


Click on the “Save” button near the top right corner of the window.


Next, you should see the following.


Click on Apply at the bottom right of the dialogue box.


You should now see the grass platform sprite within the Objects pane on the rights side as shown.


Next, let’s create our player sprite in a similar way.

Click on “Add a new object”. 


Choose Sprite for the object type and call it “Player”


Click on “+ Add an animation”. You should see the following.


Click on “Edit with Piskel”. You should see the following.

If your screen looks different, locate and click on the following icon:

Enter the following for the width and height of the sprite we will make.

Width: 128
Height: 128

Click on Resize.


Next, using the pen tool (and any others) draw your player. You can draw anything you like. We will use a simple stick figure.


Change the default sprite animation name on the very top to “player” then click on the Save button on the top right.


You should see the following. Click on Apply


At this point, we have 2 sprites as shown below.


Next, click on the 3 dots next to GrassPlatform, then select edit object.


Click on the behaviours tab


Click on “Add a behaviour to the object”. You should see the following.

Click on Platform. You should see the following.

Click on Apply.


Next, do the same for the Player object, this time choose “Platformer character” for the behaviour.


Next, drag and drop the GrassPlatform to the game design area. Your screen should look like the following.


Spawn a few more grass platform objects by holding down the control key while dragging new platforms. We made ours look as follows…


Next, drag and drop the Player sprite onto one of the platforms. Your screen should look like the following.


Click on the game Preview button.


Use the array keys and the spacebar to move around and jump on your platforms.

Congrats! You have learned the following in this lecture:

  • How to create a platform sprite
  • How to add a platform behaviour to platform sprite
  • How to create a player sprite
  • How to add platform movements to a player sprite

Next, we will learn about setting boundaries for player movements.

Game Files/Resources

You can download the files from the link below.

Download link 

Table of Contents