RPG 8 directions - The enemy must chase the player!

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • Hello, I'm making a top-down RPG game like the old The Legend of Zelda

    And I have a problem with the enemy, (Skeleton) I made it so that he follows the character, well, if he goes behind a small obstacle, he stops and that’s it, also I couldn’t connect the attack animation

    How can I make the enemy chase my player and if he hides behind an obstacle, he will go to where he last saw him?

    And if anyone knows how to add animation to the enemy (Idle, Attack, Run)?

    I made a mechanic so that they do not fit in place and the fact that they turn towards the player if they notice him, all that remains is to follow if he notices the player

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My solution

    Add 2 variables name: last_x, last_y for object skeleton, then try to find when he collison the obstacle => action make he move back to last_x, last_y

    And if anyone knows how to add animation to the enemy (Idle, Attack, Run)?

    => This simple drag these sprites to animation editors ? You can find others sprite in itch.io (Awesome site to get free pixel resource)

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