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)