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
Our educational partners
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'm having issues making a bullet object shoot towards the nearest sprite object. In my case I would like to spawn a bullet that collects coins. There are several copies of the coin sprite and I would like it to curve toward the closest one.
I'm not sure if I can maybe set a turret behavior or something?
I was able to achieve this with the turret action applied to a sprite that I set to follow my character. Hope this helps somebody else.
Develop games in your browser. Powerful, performant & highly capable.
Here's what I would think initially.
Pick closest instance to player.x player.y
--set angle to angle(player.x, player.y, instance.x, instance.y)