How I Could Create This With The Nodes ?

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

  1. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    @Miko Buildbox @Smart Penguins @Hanomax @Ayman
    Hello everyone, :)
    my problem is that I have in mind a fairly precise mechanism for my game but I do not see how to make my idea come true, I do not know at all code so I try to realize my idea with the nodes. I want to make a top down game in 2D, I would like to move the enemy randomly, when the player approaches the enemy, they follow me and I would like to build walls to make obstacles and even if the enemy are next to me, if there is a wall between us that keep them from seeing me. How could I achieve this mechanism without code and just with the nodes? Thank you so much in advance for your help.
     
  2. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    If I simplify my mechanism, I just randomly move the enemy and they follow me when I'm close to them, game can do this without coding if so how I can do ?
     
  3. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    How can I make enemies move in a random direction in my top down 2D game ?
     
  4. Hanomax

    Hanomax Avid Boxer

    Joined:
    Aug 24, 2018
    Messages:
    157
    Likes Received:
    85
    One way is to use Timer node - Random 5 node - Move nodes.
    Or if collide - Random 5 - Move nodes.
     
  5. Julio666

    Julio666 Boxer

    Joined:
    Dec 22, 2019
    Messages:
    50
    Likes Received:
    4
    @Hanomax Thank you so much for your help
     

Share This Page