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
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?
Develop games in your browser. Powerful, performant & highly capable.
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.
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)