What Is The Best Way To Make Enemies Move In Fixed Directions?

Discussion in 'How Can I...?' started by Zanotta, Apr 13, 2019.

  1. Zanotta

    Zanotta Boxer

    Joined:
    Apr 5, 2019
    Messages:
    11
    Likes Received:
    7
    Hi folks, i would like to make my enemies move from A to B, from B to A, in this simple loop.

    At first i tried set the enemy Linear Velocity and added a Logic Transform in both points A and B, changing the enemy rotation by 180.

    But some of the enemies move in a different speed, respecting the positions in the loop. Any ideas of how to achiev such behaviour?

    In the screenshot, those dots are the Logic Transformers. All my enemies are moving correctly from point to point, but in different speed.
     

    Attached Files:

  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You can set the velocity on the Transform Logic to ensure they all travel at the same speed.

    Alternatively you can use a Path and set it to Loop or Ping Pong.
     
    Zanotta likes this.
  3. Zanotta

    Zanotta Boxer

    Joined:
    Apr 5, 2019
    Messages:
    11
    Likes Received:
    7
    Can you explain a little further? I tried set the velocity on the Transform Logic, but same result. What should be the best approach? I am trying to figure out how Path works.
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Can you send me your BBDoc?
     

Share This Page