P
Palocles
Guest
I’ve just run through this tutorial: https://www.yoyogames.com/blog/419/realtime-2d-lighting-in-gamemaker-studio-2-part-1 and part 2 and i’m having some pretty weird results.
Is anyone familiar with the tutorial? Have it working in their games?
If you can point me in the right direction to fix the following I would appreciate it.
1. Game runs super slow when light source object exists.
2. Shadows are not cast from objects.
3. Top left of the light circle almost has correct fade but other quarters fade from dark to light as they move away from the light source.
Additionally, i’d Like to make all objects outside the light radius hidden by darkness.
Could I achieve a similar effect to the circle of light (but not shadows cast from objects) by overlaying a sprite to the light source which is a black mask with a faded circle of transparency in the middle?
Thanks.
Is anyone familiar with the tutorial? Have it working in their games?
If you can point me in the right direction to fix the following I would appreciate it.
1. Game runs super slow when light source object exists.
2. Shadows are not cast from objects.
3. Top left of the light circle almost has correct fade but other quarters fade from dark to light as they move away from the light source.
Additionally, i’d Like to make all objects outside the light radius hidden by darkness.
Could I achieve a similar effect to the circle of light (but not shadows cast from objects) by overlaying a sprite to the light source which is a black mask with a faded circle of transparency in the middle?
Thanks.