Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

A way for the enemies to STOP chasing you?

dre38w

Member

I first want to apologize if this was already posted and answered but I honestly have NO clue what to type in the search bar...
I have lots of enemies running around my levels and I need a way to have it so that the enemies chase the player only when in a certain radius. And then stop chasing the player once out of that certain radius. I am sure this all has to deal with scripts. If anyone knows of something let me know. I would greatly appreciate it.
 
You can use the XAS system for this, it has an enemy sensor that you can set, if you are out of the area the enemy starts wandering around the map, if you are in the sensor it sets to another path he takes and attacks you. I have, however, no idea if you can take this system out the XAS and use it for yourself.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top