How to Make Your First Platformer Game in Godot

——   Created by Christopher Navarre

Classic Platformer Design in a Free Game Engine for Beginners

Share this course:

NEW
Course
37
Lessons
5h 47m
Lesson time
beginner
Skill level

More about this course

An introductory course into game development in the Godot engine. In this course, you will learn through the example of setting up a 2D platformer, coded from scratch, and set up a working prototype that you can build from. We will create a working player controller with double jumping, wall jumping, and a bounce attack as well as two enemies that use waypoint movement and respond to area triggers. Learn how to setup projectiles as an extra way of having enemies attack your player character. For building levels out, we use the Godot tile-map system and auto-tiling for faster level building. We use gdscript as the coding language because it is very fast to test with and intuitive to write and understand similar to python. This course is meant for beginners but is code heavy as we will be writing everything ourselves. As we code, I take the time to explain every step so you can understand the logic behind making changes and not just the line of code character for character. For art assets, we prototype with Pixel Adventure 1 and 2. Links to these can be found with the first video in the course for you to use to follow along.

The course project

Finished Reference Project

https://github.com/ChrisTutorials/ChrisTutorials-2D-Godot-Platformer

Our class project is to create the framework for a working 2d platformer game. By watching and following along the course videos, you should be able to get there. At a minimum, try to do the following...

  • Setup your player movement script, animation tree, sprite, and animation player so that your player can move with input controls.
  • Add an enemy ~ in the course videos we make the angry pig as the basic example.
  • Build a level for your character and enemy to play on
  • Separate world tiles from player and enemy characters by using physics layers

From there, here are some extras you could add to bring a bit more life to the game

  • Add power-ups like a health restore using Area2Ds as mentioned throughout the course. These would need to check if a player enters the zone through the collision mask of the area2d.
  • Create your own custom enemy ~ in the pixel adventure pack, there are many animated characters you could use for this.
  • Create a hazard like a spike that deals damage to the player if the player collides with it or enters its damage zone.

You can find the same art assets used in the videos from here

Pixel Adventure 

OpenGameArt is a great site to find music or sound effects you might use for your game. Here are a couple links to music packs

37 Lessons

0:01:19
Introduction
free preview
0:07:01
Setup Godot and Import Pixel Adventure Art
0:04:14
Setup Project for Pixel Art (Window Size, Stretching)
free preview
0:03:38
Making a Repeating Tiled Background
0:19:16
Tilemaps and Tilesets for Level Building
0:07:57
Setting Up Player Animations
free preview
0:16:22
Player Input and Left Right Movement
0:12:53
Gravity and Global Game Settings with Singletons
0:16:18
Jumping, Movement, and State Machines
0:11:22
Animation Tree and Switching Animations
0:04:13
Jump & Fall Animations Setup in Animation Tree
free preview
0:06:44
Signals and Player State Debugging Label
0:03:03
Follow Camera
0:04:19
Double Jumping State Code
free preview
0:06:22
Setup Double Jump Oneshot in Animation Tree and Code
View more lessons +
This course is included in Arbington Premium
$15/month gets you access to every course. Start your 14 day trial today. ☝️

Class benefits

  • Certificate of Completion
  • 30 day satisfaction guarantee
  • 24/7 streaming access
  • Project included
  • Direct teacher access
  • 5h 47m of on-demand video
  • 1 downloadable file
  • Have a coupon?

About the instructor

My philosophy in information technology and learning in general is that video learning is the best way to learn for yourself. I can provide the videos but it's up to you as my student to absorb and practice the information to become a more educated and skilled person.

If you …

View full profile

For super learners, get unlimited access for $15 per month

Start your 14 day free trial. Cancel at any time.