Making Enemy Move When Getting Closer Than ** Pixels

Discussion in 'How Can I...?' started by gauldaldesign, Jul 25, 2017.

  1. gauldaldesign

    gauldaldesign Boxer

    Joined:
    Jul 23, 2017
    Messages:
    4
    Likes Received:
    0
    Hey guys.


    Have gone trough most of the tutorial video's and startet on my first test game.
    Watching video's while i set up the game to learn while i set it up.

    I have set up an enemy. This enemy should go to the left when i get close enough. I have set up the "Wake up" to 700 and Linear Velocity to 20.

    The problem is this:

    When i preview the game, sometimes the enemy goes right, sometimes he goes left and sometimes he goes slower or faster than was set up...
    What am i doing wrong here ? :)
     
  2. gauldaldesign

    gauldaldesign Boxer

    Joined:
    Jul 23, 2017
    Messages:
    4
    Likes Received:
    0
    Anyone?
     

    Attached Files:

  3. codybonnett

    codybonnett Boxer

    Joined:
    Jun 17, 2016
    Messages:
    32
    Likes Received:
    5
    The screenshot you posted doesn't look like an enemy.

    I have an enemy close on you when you pass it with the attached set up and it works. I would just change the distance to 700 in your case.
     

    Attached Files:

Share This Page