I want certain non solid objects to be able to interact with the line of sight.
I have enemies approaching that stop in a line of sight, but I want ones behind them to be able to move.
Thanks!
give your objects an instance variable, then set it to distinguish them from eathother..
Develop games in your browser. Powerful, performant & highly capable.
Much appreciated. How do I give them an instance variable? Can't find that out!
When you select an object inside the editor on the left you find the properties bar..
click add/edit instance variables..
Gotcha, thanks!
Now under obstacles for my LOS it still says custom. How do I set it to the instance variable I just called "Enemy?"
And seriously, thank you for the amazing support. I will be buying the full edition as soon as I am able. You guys are really awesome.
Why would you want the enemy to obstruct the line of sight?
I would think you wanted the to use the line of sight to see the enemy..
So when any enemy behind another one, is able to move, as the closest selected will freeze, but ones in its "shadow" are free to move.
Ok, this would not be the way to do this..
If you'd like to do something like this, it might be better to have the nearest player spawn an object which obstructs the sight..
Mind helping me figure out how to do that?