How Do I Reverse My Mechanism ?

Discussion in 'How Can I...?' started by Julio666, Feb 3, 2020.

  1. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    45
    Likes Received:
    3
    Hello everyone, :)
    I would like to know how I could do to reverse the mechanism which is that the ennemi pursue me and when they touch me it's the other way around, they run away from me and I have to touch them. Thanks to your help I understood how to get the enemy to follow me but I don't understand how I could reverse roles as soon as an enemy touches me? Thank you again for your help.
     
  2. jmp909

    jmp909 Boxer

    Joined:
    Feb 2, 2020
    Messages:
    28
    Likes Received:
    4
    How did you get the Enemy to follow you? Custom AI Script?
     
  3. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    45
    Likes Received:
    3
    No script, I do not know coder, I have not yet started my game may I asked miko how I can ask the ennemi to follow me, he told me with Trail 3D node
     
  4. jmp909

    jmp909 Boxer

    Joined:
    Feb 2, 2020
    Messages:
    28
    Likes Received:
    4
    That’s designed for games like Snake really... it trails behind the player.

    This asset would have *some* of the logic you need and you might be able to send a message to switch control from one player to the other if the node is present on both enemy and player and can be enabled/disabled with a signal. But you’d have to buy it to find out. I haven’t used it

    https://gumroad.com/l/zqzEQ
     

Share This Page