TwinkPatrol's Forum Posts

  • 1 posts
  • I have a Shock Chain bullet which should jump to the nearest enemy after hitting a target. After it hits an enemy, it spawns an invisible ellipses range sprite hitbox on the enemy and checks to see if it is overlapping any other members of the enemy family. If it is, I want it to pick the nearest one and move to it using the move to behavior.

    I found the "pick nearest/furthest" condition under the "size and position" conditions and set it to pick the nearest Enemy family instance to the x and y of the hitbox. But now I am having trouble figuring out how to make the bullet move to the instance that has been picked by the condition. There doesn't seem to be an obvious way to actually return which instance is chosen by the condition. How are you supposed to do anything with the information the condition gathers?

    There must be something obvious about this that is going over my head, but I can't figure it out.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 1 posts