Page 1 of 1
foreShadows.lua - I see you back there!
Posted: Sat Mar 25, 2023 11:20 am
by MrDoubleA
Something I whipped up in a few minutes. Shows where players/NPCs/etc. are behind foreground objects.
Similar to dropShadows.lua, should work with pretty much everything, but partial transparency may cause issues.
Download
Re: foreShadows.lua - I see you back there!
Posted: Sat Mar 25, 2023 12:39 pm
by Alucard648
Will it be possible to limit functionality of this script to specific BGOs and after triggering specific events?
https://youtu.be/F1GDvDX6y3g?t=3831
Re: foreShadows.lua - I see you back there!
Posted: Sat Mar 25, 2023 9:23 pm
by Emral
It already is. You just have to change BGO.config[id].priority at runtime, or swap a layer with BGOs on one priority to BGOs of another. All it does is compare priorities.
Code: Select all
-- Priority where sprites will start having a "shadow".
foreShadows.backPriority = -59
-- Priority where sprites stop having a "shadow".
foreShadows.middlePriority = -21
-- Priority where sprites will stop causing sprites to have a "shadow".
foreShadows.forePriority = -16
This means that any BGO with a priority between -21 and -16 will cause sprites to have a shadow. So a BGO with priority -15.5 would not.
Re: foreShadows.lua - I see you back there!
Posted: Sun Mar 26, 2023 9:27 am
by Alucard648
Thanks.
Re: foreShadows.lua - I see you back there!
Posted: Thu Feb 29, 2024 5:49 pm
by blockhopper gaming
The link for this is dead (thanks Discord), could someone provide a backup?
Re: foreShadows.lua - I see you back there!
Posted: Sat Mar 02, 2024 9:32 am
by MrDoubleA
blockhopper gaming wrote: ↑Thu Feb 29, 2024 5:49 pm
The link for this is dead (thanks Discord), could someone provide a backup?
Fixed now.