Search The Query
Search

 

Defold Platformer tutorial series.

Welcome to our new Defold Platformer tutorial series.

Below you will find the different videos of the serie and the links to all the resources that have been or are being used the tutorial.

The reason why we have started this tutorial, is because several subscribers asked us to approach the engine with our our particular style of making tutorials, because there wasn´t too much tutorials available that allowed to understand correctly the full process of creating a game with Defold.

We hope that this series will give an answer to those people and can help pave the way for a great engine.

As always if you want to see something specific in the tutorial, don´t hesitate to ask us.

Introduction to Defold game Engine

For those who don´t know it, Defold is a game engine that used to belong to KING, the mobile games developer, and publisher, until they decided to give the engine to the Defold Foundation, to make it free and open-source.

The engine is both a 2D and 3D engine, with some limited functionalities, that are very easy to get familiar with, a very lean interface, and scripting based on the LUA scripting language. The quality of the games that can be achieved is quite high as you can see in the videos that have been used in the introduction. If you want to learn how to make games, or you want to see other alternatives to other game engines, this tutorial series is for you.

DEFOLD Game Engine TUTORIAL #01: Creating a PLATFORMER PROTOTYPE

In the first lesson, we went over the game engine IDE, its main blocks and its capabilities as engine to create multiplatform games.

In this video, we will start to take a look at the building blocks of creating a game for the engine. To make it easier to understand the main difference between the different engines that we are covering, we have thought of implementing the same game with the resources.

Since in G Develop we have already started to put the foundations on a new platformer for the Melee tutorials, we have decided to use it too in Defold. There so, In this tutorial, we will import all the assets for the level, player, and enemies, we will create a first draft level, and implement a basic movement that will allow us to control our player character. Share your love for Defold and our Channel with our Products https://www.redbubble.com/i/hoodie/I-…

Timestamps

00:56 Setting the Project, Pixel Art perfection, Tilesouces and tile maps.

13:35 Sprite Atlas, Sprites and Player game Object

19:18 Camera Project and Pixel Perfection

20:55 Physics and Player Colliders

23:00 Physics Colliders for Tilemaps

25:12 Physics Interaction: Groups and Masks

28:14 Basic Player Movement & Scripting.

DEFOLD Game Engine TUTORIAL #02: Implementing the ENEMY MOVEMENT & ANIMATIONS

in the second lesson, we have set the ground bases for a platformer/metroidvania prototype.

In this video, we are implementing an enemy with a basic behavior of walking forward until colliding with a wall and then flipping into the opposite direction.

We will add animations to the enemy and to the player that was implemented in the previous video. Since some people required more detail on scripting with LUA, we will be going slowly over the implementation of the enemy script with the Defold scripting language – LUA.

Let’s keep building our Defold game.

Timestamps

00:45 Creating the enemy Skeleton

09:16 Implementing Walls Collision on the level

12:33 Implementing in LUA ground and walls collisions

27:37 Making the enemy skeleton move with LUA

28:09 Setting the collisions events for the Walls with LUA

30:06 Flipping a sprite with LUA

31:36 Playing Animations with LUA

34:19 Setting the animations for the PLAYER

DEFOLD Game Engine TUTORIAL #03: ENEMY MELEE ATTACK

In this video, we are continuing from the previous video and build a detect and attack behavior for our skeleton enemy.

For this to work, we have to implement trigger detection, collision enabling and disabling, frame count detection to synchronize the hitbox enabling with the frame animation, and finally applying the damage to the player. Seems easy, but that has some interesting implications on Defold, and we will look into the solution with all the detail to allow you to make it yours.

Let’s keep building our Defold game.

Timestamps

00:48 Fixing the physics bugs and Physics debugging

03:48 Flipping colliders

6:35 Defold Collision Responses and player contact

11:29 Defold Trigger Responses and hitboxes

11:44 Player Damage

17:13 Detecting animation frames in Defold

22:18 Timing attacks and attack rate

DEFOLD Game Engine TUTORIAL #04: PLAYER STATES, LIFEBARS AND GAME JUICE

In this video, we are continuing from the previous video and building a detect and attack behavior for our skeleton enemy.

For this to work, we have to implement trigger detection, collision enabling and disabling, frame count detection to synchronize the hitbox enabling with the frame animation, and finally apply the damage to the player. Seems easy, but that has some interesting implications for Defold, and we will look into the solution with all the detail to allow you to make it yours.

 

The resources used in the tutorial

The support page for our tutorial on on creating platformer with DEFOLD GAME ENGINE.

The source code will be hosted on itch.io and github

The code for the movement script, can be found on the platformer tutorial from the DEFOLD

https://defold.com/tutorials/platformer/

 

The graphics assets can be found on

Warrior

https://pellaore.itch.io/free-2d-pixel-art-warrior-swordsman-character-sprites

Medieval Castle

https://rottingpixels.itch.io/castle-platformer-tileset-16x16free

Skeleton Enemy

https://jesse-m.itch.io/skeleton-pack

if you want to take a look at the GDevelop tutorials, check here