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.

GTBS Event/Monster chase character problem...

    Well. I wasnt sure if this was a "script related question" or not. I guess it could be both...
anyway i have a problem, im using Gubids GTBS (its amazing btw) when i stumbled upon what seems to seperate a great game, from a stupid one.

My character must walk threw a...lets say forest filled with monsters, and get to the end of the forest.
the monsters randomly walk around, but if they touch the actor a battle starts.

My monsters are spread out and when i was testing the game i ran into a problem, the monsters dont touch the character unless you have chronic arthritis of the hands, and cant maneuver with the keyboard to save your life.  :down:

Then i tryed the option that makes the event go to the player... but then i had 10 monsters rushing the player from every angle.


How can i make the monsters walk randomly about the map, and if the actor comes in range of the monster, it will chase after the actor until the actor gets out of range of the monster, or the event/monster touches the actor and triggers a battle.

Scripts to solve this would be great, but anything would help.

-Tyler
 
So if i understand you right, you want to have character events on your map that randomly walk around, and when your hero gets within a certain range of one of the events, you want to have the event to chase after him while avoiding any obstacles along the way? If that's right, check out cowlol's pathfinding script on these forums. It isn't the fastest pathfinding script around, but it effectively does the job.
 
Alright will do.

Thanks for your help.

Edit: I tryed it but it seems that this script only affects the actor, and it goes to a spacific tile, but if the character is moving how would i send it to that tile?
 

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