Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
The turret behavior has only 2 target modes: "Nearest" and "First in range". I need to have a way to pick RANDOM enemy (instance). Does anyone have a suggestion for this?
It's difficult to distinguish target from object type. Easiest way is to create your own turret, have it spawn bullets and set bullet angle to pick nearest enemy.
Colorfish Don't add a target object to the turret. Instead, use "Acquire target" action. Pick a random enemy instance and then acquire it.
You can see something similar in this demo:
howtoconstructdemos.com/how-to-limit-the-angle-of-view-for-turret-behavior
Develop games in your browser. Powerful, performant & highly capable.
Thanks "dop2000", that did the job :-)