Game Development for Kids with GDevelop - Light Object

in Education9 months ago

In previous tutorial, we learned about how to make typewriter text effect. The effect was pretty useful in various types of the games. And so now we move onto the next topic.

Today we want to check out how to make use of the light object to form a light around certain places within the game. So this means we add the light object and then illuminate certain specific places in the game or level.

Light object is often used by the developers to form sunlight or some light in a cave. This sort of the usage makes it easier to display the light and also for various game effects.

Before we move onto the tutorial, let's take a look at what we have done so far.

So here is the table of content of the previous tutorials that you can follow for making the specific parts of the game development.


  1. GDevelop - How to Create Project
  2. GDevelop - How to Create Scene
  3. GDevelop - How to add background Image
  4. GDevelop - How to add Image Sprite
  5. GDevelop - How to Horizontal Scroll
  6. GDeveop - How to Vertical Scroll
  7. GDevelop - How to Switch Level or Scene in Game
  8. GDevelop - Switch Scene or Level
  9. GDevelop - Add Force to Sprite
  10. GDevelop - Key Press Change Background
  11. GDevelop - Particle Emmiter
  12. GDevelop - Tiled Sprite
  13. GDevelop - Asset Store
  14. GDevelop - Text entry object
  15. GDevelop - Typewriter Effect

Now before starting the tutorial, make sure that you have downloaded the GDevelop program. And you have now started working on the project creation. Which is a good practice and a good overall workflow I can say.

Make sure to also add the items in the game projects and take their backup on the regular way too. I can tell you from the experience that this would in near future become better practice and can save your hours instead of losing the backup.

So let's move on from that point now.


Image Credit: GDevelop


In the table of content displayed above you have around 15 tutorials to go through. You can take them randomly or you can go through them one by one. And they can easily make it possible for you to learn the GDevelop as you slowly start working on each one of those tutorials. I'd recommend going step wise and see if that helps with your skills.

So let's dive in for the instructions which you can use for making the game.


Follow the instructions below to work with the Light Object in your game for various light effects.

  1. Install GDevelop from official site.
  2. Open up Gdevelop.
  3. Create new project.
  4. Click on project explorer on left top panel.
  5. Choose scene.
  6. After adding the scene, lets add the background for the game.
  7. You need to add new object.
  8. Choose light object.
  9. Add the respective property of the light that you want.
  10. Choose the shape for the light object.
  11. Click on apply.
  12. Now drop the object on the scene.
  13. Now save the project settings.
  14. Click preview.

That is all. You can now test your light in the game preview. Do note that you have to test with position, light, color and various other settings. This will help you with the exact light effects and also the shadow if you want to use it.

This effect can be used as a light source in cave or even the sunlight if you want. Some also make use of this in the paralax effect while the camera follows the user.

You can follow the instructions through the video tutorial as well.



A lot of 2D Games these days make use of the light objects where they can make it look like 3D. So your experimentation and the imagination seems to be the limit here. I prefer doing something simple and slowly build on the top of it.

I also think that you can play around with various parallax and also cave type of game effects. I am sure you would find the light object pretty useful in that context.

We will continue the further game development topic in next post.

Sort:  

Congratulations @devpress! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You published more than 90 posts.
Your next target is to reach 100 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Support the HiveBuzz project. Vote for our proposal!