Hello,
I'm trying to recreate boids in construct 3, and would like to ask about something I've been struggling with.
The two lines here are supposed to:
- Get the boid's current position as two instance variables (MyX,MyY)
- Get the nearest other boid's position as two instance variables (TheirX,TheirY)
It is supposed to do this for every boid instance, every frame, and ideally should be infinitely scalable. I found out how to figure out which boid is the closest to the current boid, but have no idea how to get that information back to the original boid.
If anyone has anything to say, I'd love to hear it.
Thanks