
How would I make something like this work in GDevelop?

How would I make something like this work in GDevelop?
Use a raycast from player to each enemy/other player, and check whether they’re obscured.
Set “z” value of your shadow sprite higher than the object.
Eh? When using a light object, the shadow is not a sprite.
What shadow sprite? I just have a light that follows my player around.
Oh yeah sorry, I got the question wrong. Btw I don’t have light objects in my gdevelop, how do I add them?
To add a light click ‘add a new object’ then select ‘light’
Check out this older post on how to raycast
.
For an alternate option:
Nevemind, I uninstalled and reinstalled Gdevelop, I have my light object now ![]()
“change it from “sprite” to “any object” bro? Where? How?”
thanks for replying, but no bumping old posts please <3