Page 1 of 1

How to add light (light effect) in gdevelop 5 ?

PostPosted: Fri 6 Jul 2018, 22:14
by khaledali
How ? i looked everywhere and it's not there

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sat 7 Jul 2018, 10:50
by ddabrahim
Lights are not supported in GDevelop5 at the moment.
You can add light objects in GD4 native only. I believe you need to enable the extension and then you can create a light object.

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sat 7 Jul 2018, 16:15
by khaledali
alright i have gdevelop 4 . How to enable the extension ?

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sat 7 Jul 2018, 16:35
by ddabrahim

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sat 7 Jul 2018, 21:31
by khaledali
Found it thank you but light is under native games .. i'm making an html5 (android) game . can i somehow use it or is it compatible with just native games ?

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sun 8 Jul 2018, 10:07
by ddabrahim
Yes, the light extension in GD4 is native only and even in GD4 you can have only a single dynamic light in the scene.

In case you need a single light source only, like a flash light for example maybe you can fake it in GD5/HML5 using a transparent full screen image.
Alternatively, you can consider to design all your sprites with fake lights. You could use something like SpriteIlluminator to create illuminated sprites
https://www.codeandweb.com/spriteilluminator
Note that normal maps are NOT supported in GD5 but you can export the actual images from SI as they are "illuminated".
It is lot of trouble to illuminate all your sprites this way, but I have no better idea for GD5/HTML5.

Good luck.

Re: How to add light (light effect) in gdevelop 5 ?

PostPosted: Sun 8 Jul 2018, 13:31
by khaledali
This is so cool very nice . i will check it out . thank you