Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
give your objects an instance variable, then set it to distinguish them from eathother..
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..
Develop games in your browser. Powerful, performant & highly capable.
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?