How can i just move the Enemy from Right to Left

Discussion in 'How Can I...?' started by duyduy_nguyen, Feb 19, 2016.

  1. duyduy_nguyen

    duyduy_nguyen Boxer

    Joined:
    Oct 9, 2015
    Messages:
    35
    Likes Received:
    6
    As the tittle, I just wanna move the enemy from Right to Left

    ...and did the setting like the ss below - but sometime it's work and sometime it doesn't ( by move from Left to Right )

    upload_2016-2-20_9-32-54.png

    Anybody know how to fix this issue - please guide me. Thank you so much!
     
  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    On the Linear Velocity the first number is a fixed value -- currently that is 0.000. The right hand side value which is currently set to 4 is a random factor. Now you get a random speed between 0 and 4. Add static velocity 10 for example, and then you will get a random speed between 10 and 14 ...
     
    duyduy_nguyen likes this.
  3. energizerlithium

    energizerlithium Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    110
    Likes Received:
    47
    To move from left to right in a continues pattern, you'd have to use the Transform function.

    You'd put two transform placeholders on the left and right side of the enemy, and in the transform settings select the enemy name and give one of them a value to move the enemy to the left, and when the enemy touches the right transform placeholder, it should have the setting to move to the right.

    I'm not sure if I explained it properly, since I haven't personally used this setting yet but that's how it's supposed to function I believe
     
    duyduy_nguyen likes this.

Share This Page