Super Mario Platform Runner Using Gdevelop Engine

Introduction

This article demonstrates the Super Mario platformer Game Build Android Platform “Gdevelop” Software and is open source. Games exported with GDevelop are based on the native and HTML5 platforms. GDevelop is an open-source, cross-platform game engine designed for everyone. It is extensible, fast, and easy to learn.

Prerequisites

“Gdevelop” Software Environment version 4.0 (Free).

Overview

First of all, we need to open the “Gdeveop” IDE.

Step 1. To create a new game->Choose the Android platform and then click on Empty Project.

The following article represents the Gdevelop IDE and provides the procedure for Super Mario Platformer apk creation.

First of all, we need to choose our platform for game development. For that, we need to choose a platform such as Android, the present article explains the platformer creation, and the output is based on HTML 5.

If the game development is based on html 5 then, HTML5->create this platform-> android games.

After selecting->new project, a dialog box window will appear select->html5->Platformer project and click->create the new project.

Platformer project

New project

Step 2. After creating a new project, a new scene window stage will appear and scene and event conditions will be seen in the new scene stage as shown below. The scene condition represents the insertion of the object, and the event condition represents the performance action of the object.

New scene window

Step 3. The scene object editor represents the insertion of the objects, and it allows the required number of object insertions according to the user's request and the inserted object can be edited according to the need of the user.

Editor represents

Step 4. The insertion of the Platformer object can be done by adding the image from our own PC with the desired image, for that click-> on the scene editor and select->insert a new object.

Platformer object

Extension

Object

Step 5. Edit the Player object.

From the right side of the window after creating a new project, right-click on ->object editor and select->Add an object.

To act on the object we need to right-click ->on the object->add a behavior to the object.

Object Animation Edit

We need to add the runner animation to the Object editor when the character is a runner on a platform. Add another animation like before. When adding images you can select all the images or one by one, per your wish. Finally, rename the animation to runner object editor.

Runner animation

Insert Constant object

Double-click on the Scene Conditions. A dialog box will appear. Now, we need to add the following object to the scene, so that it will lead to the creation of all game objects.

  1. Platform
  2. Jump thru
  3. TileGrassPlatform
  4. TiledCastlePlatform
  5. Moving Platform
  6. GoLeft
  7. GoRight
  8. Ok, Done.

Platform

Jump thru

TileGrassPlatform

Go left

Go right

Step 6. Insert Slimewalk object.

For adding the Sprite object, double click->in the layout sheet and insert a new object dialog box and now we can select the SlimeWalk object.

By right-clicking on->Enemy Object-> a window dialog box will appear and click-> Add force from the left-hand side of the window and select->Edit the sidewalk Object.

Enemy Object

Step 7. Insert fly object.

Again, for adding the Sprite object, double-click on the Layout sheet. A new object dialog box will appear now. Here, we can select the Fly enemy object. Name it as an enemy Player.

Now, we are able to see the fly enemy object and the player enemy object diagram in the given event sheet.

Insert child behavior object,

  1. Cloud
  2. Background object.

Behavior object

Cloud

Background object

Step 8. In the Object editor window (on the right), we need to change the following conditions' Score Values.

Click "Behaviors" on the right-hand side and insert a new Text behavior dialog box. Then, add a text object. And, we can change the Font size.

Behaviors

Step 9. Insert child behavior object.

Double-click on the Scene Conditions. A dialog box will appear. Now, we need to add the following object to the Scene, so that it will lead to the creation of all game objects.

  1. Coin
  2. Left Button
  3. Right Button
  4. Jump Button
  5. Arrow Button

Coin

Left Button

Right Button

Jump Button

Arrow Button

Now, we can see below all the objects in the New scene window.

Objects scene

You can see the game scene conditions preview in the below template.

Below template

Condition scene

Project manager

Fly scene

Event Conditions

The event editor is like the heart of the entire game development, since the scene editor represents just the insertion of the object, whereas the event editor brings the life of the object action such as the movements of the object.

Open the events ->click on the add event -> New Event.

At the beginning of the scene->Hide the objectHitBox,

Position of the Player,

  1. PlayerHitBox.X()-12;
  2. PlayerHitBox.Y().
  3. Ok, Done.

PlayerHitBox

Events need the following conditions

At the beginning of the scene,

  1. Hide the object Goleft,
  2. Hide the object GoRight
  3. Add to MovingPlatform a force of -150 p/s on the X-axis and 0 p/s on the Y-axis.

MovingPlatform

This is how the event sheet will look after the above event is complete.

Output

It's time to view the output that we have been waiting for, for viewing the output, select->scene in the options menu and click->preview for output.

Output

Event sheet

Preview

Conclusion

I hope this article will be useful for Space Mario and your games programming using Gdevelop, and in the upcoming articles, I will explain the usage of different concepts using Gdevelop IDE. Thanks for reading and have a nice day.


Similar Articles