How do i add dynamic light to my project?


#1

Hello i am making on project and i want add some dynamic light but i can´t found anything like this. I know there Gdevelop support javascript code. So if dynamic light isn´t in gdevelop 5 which i am using, i can code myself dynamic light inside of project (i am learning javascript) but i don´t know how. I saw tutorial on dynamic light by Spackman. But it was in Gdevelop 4. Can someone give me some tip?


#2

Gd4 have native extension for dynamic light. On GD5, the render of the game is made in webGL by pixi.js library : something like this plugin could probably be used : https://github.com/pixijs/pixi-lights

But this might not be simple.