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.
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.
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.
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.
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.
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.
- Platform
- Jump thru
- TileGrassPlatform
- TiledCastlePlatform
- Moving Platform
- GoLeft
- GoRight
- Ok, Done.
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.
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,
- 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.
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.
- Coin
- Left Button
- Right Button
- Jump Button
- Arrow Button
Now, we can see below all the objects in the New scene window.
You can see the game scene conditions preview in the below template.
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,
- PlayerHitBox.X()-12;
- PlayerHitBox.Y().
- Ok, Done.
Events need the following conditions
At the beginning of the scene,
- Hide the object Goleft,
- Hide the object GoRight
- Add to MovingPlatform a force of -150 p/s on the X-axis and 0 p/s on the Y-axis.
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.
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.