how do I make a character walk randomly around the scene?

0 favourites
  • 7 posts
From the Asset Store
The Snail Sprite Sheet includes a detailed walking animation for a cute, cartoon-style snail character.
  • how do I make an 8-way character walk randomly around the scene?

  • First you need to attach pathfind behavior to the character.

    On start of layout find path to random(x,y).

    On path found - > move along path.

    On failed to find path - > find path to random(x,y).

    I did not test this because I'm not on my pc but I think it's gona work.

  • First you need to attach pathfind behavior to the character.

    On start of layout find path to random(x,y).

    On path found - > move along path.

    On failed to find path - > find path to random(x,y).

    I did not test this because I'm not on my pc but I think it's gona work.

    I'm sorry, I speak portuguese and the google translator is not very good. So, I want my character and randomly without stopping, I did what you said, but after a while he to walk. Here is a picture of how I did it.

    note: the X and Y that I put is as far as I want my character to go

  • Sorry, I forgot the most important.

    It stop because it arrived to the path so add another event.

    On arrived - > find path to random(x,y)

  • Sorry, I forgot the most important.

    It stop because it arrived to the path so add another event.

    On arrived - > find path to random(x,y)

    now it was, thank you very much! But I have another mistake, can you help me?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If i can yes. Please post your problem.

  • If i can yes. Please post your problem.

    I made a process that when my mouse is on top of the sprite and I hold the left button, the sprite will follow the mouse, but if I put more than 1 of that sprite, they will all follow the mouse, as I do so that only the that I have the mouse on top follow the mouse? note: I will send a picture of how I programmed this (I did it this way so that I can move my mouse fast and the sprite continues to follow the mouse)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)