Space Marine Warrior Game in Android Platform Using GDevelop

Introduction

 
This article demonstrates the creation of the Space Marine Warrior in the Android platform using GDevelop Software, which 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).
 
Multiplatform support
 
We can easily export it on Chrome Web Store, & Firefox Marketplace or use our Gdevelop Engine to share your creations.
 

Exercise 1

 
Click on->File, open New Folder.
 
Then, under Condition, choose platform. Click on->HTML5 (Android platform)
 
Click->Open Empty Project, create a new empty project.
 
 
 
  

New Scene

 
Open default conditions,
 
1. Scene->Insert Object,
 
After creating a new project which creates a new empty project, you will see the following template, shown below
 
 
Events -> how to object perform construct event conditions, shown below:

 
 

Insert Soldier Player Object

 
Open the scene condition, right-click on -> window stage,
 
Dialog box will appear, then, select -> insert new object.
 
Click on -> Sprite -> insert object,
 
Open an object type window, Select -> Soldier Player. After Click Ok,
 
On the right-hand side, we can see the Object editor we want to select -> add Soldier object in the object editor. You will see the layout dialog box as below:
 

 
Now we can right-click on the wall object, you see the below wall object animation conditions.
 
 

Insert the Wall Object

 
Open scene condition, Right-click on -> window stage,
 
Dialog box will appear and then, select -> insert new object.
 
Click on -> Sprite -> insert object,
 
Open object type window, Select -> Wall Object. After Click ->  Ok
 

 
 
Drag an image from the image bank to the area below to add it to the animation. Now we can right-click on the wall object, you see the below wall object animation
conditions.
 
 
 

Insert the Obstacle Object

 
Now again in the same layout sheet, we need to insert the Sprite object. Double click -> layout sheet and the Obstacles object dialog box will appear. Select the object.
 
 
 
 
 

List Of Object Editors

  1. Player Soldier
  2. Wall
  3. Obstacles
  4. Floor
Ok, done.
Adding all Objects
 
Here is how the object editor will look when this space marine object below is complete. Given the below preview, you will want some more objects, Now we can right-click on the object, which appears in the dialog box. You can change the object view,
 
Right Click on the Window Stage -> Insert new object -> Player Soldier, 
 
 
 
 
 

Complete Scene Conditions

 
Now, we can see the Space Marine, all Objects, and the Scene Condition is Completed. Click on New Scene -> Events, and create one on the Event Sheet Conditions
 
 

Complete Event Sheets

 
This is how the event sheet will look after the event is complete.
 
Soldier Movement
  1. Rotate Soldier towards MouseX('',0)
  2. Rotate Soldier towards MouseY('',0.
Move to Event Conditions with cursor to get more editor options or to edit events, double click to edit an item.
 
 
The output can be displayed.
 
Finally, press F5 to run the layout and the Browser will display the following output:
 
 
 
 

Conclusion

 
I hope you understood how to build a Space Marine Warrior game in GDevelop Software. We will see advanced GDevelop game development concepts in the upcoming articles.
 
Thanks for reading :)


Similar Articles