How Can I Make An Object Move When The Character Gets Close?

Discussion in 'How Can I...?' started by Beartrapp, Apr 11, 2018.

  1. Beartrapp

    Beartrapp Boxer

    Joined:
    Apr 8, 2018
    Messages:
    7
    Likes Received:
    2
    I want something to activate when my character is nearby like in the line zen. I have no idea what to do.
     
  2. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    You need to add a "wakeup component" to the object. You can set it to be either collision based or distance based. Distance based is in pixels. Then whenever your character is within that distance you set, it will activate and move in whatever direction you set.
     

    Attached Files:

  3. Beartrapp

    Beartrapp Boxer

    Joined:
    Apr 8, 2018
    Messages:
    7
    Likes Received:
    2
    Thank you! That was very helpful.
     
    jerry likes this.

Share This Page