So to give a brief explanation of what I'm trying to achieve. I have a flashlight mechanic in my game atm and although the player can technically see (the screen is darkened not black) I would like to mimic darkness and so I'd like certain things to only show up when the light is shone on them.
Currently I have developed a system that works but it feels super convoluted and I'm trying to streamline the process. As it is now I have a parallel event that runs tons of conditional branches checking the players map position based upon variables and switches the corresponding "lit" event on if the player is in a position where the light would hit it. I confuse myself when digging through these events and a bunch of coordinates need to be changed everytime it is used.
I'm not sure if what I'm looking for here is a plugin or there's some sort of eventing method I'm missing that could make this more manageable, but essentially I'm looking for the ability to flip switches based upon the player being a certain distance from an event AND facing towards said event.
Currently I have developed a system that works but it feels super convoluted and I'm trying to streamline the process. As it is now I have a parallel event that runs tons of conditional branches checking the players map position based upon variables and switches the corresponding "lit" event on if the player is in a position where the light would hit it. I confuse myself when digging through these events and a bunch of coordinates need to be changed everytime it is used.
I'm not sure if what I'm looking for here is a plugin or there's some sort of eventing method I'm missing that could make this more manageable, but essentially I'm looking for the ability to flip switches based upon the player being a certain distance from an event AND facing towards said event.