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.

I need a script that will allow events to follow character.

Can some one help me with a script that will allow events to follow the player when it is a certain distance away from the hero. I cannot do it with regular events.
 
Can some one help me with a script that will allow character sprites to follow the player when it is a certain distance away from the hero. I cannot do it with regular events.

I'm not sure what you mean exactly, but there are scripts that let the character sprites follow you. They're called caterpillar scripts and there are tons of them. Just do a search. And here's one to get you started.
http://www.rmxp.org/forums/index.php?topic=54516.0

Now, when you say, "when it is a certain distance away from the hero", could you clarify that. What is IT?
 
I am making an action rpg. I want the enemies to wander around randomly. However, when my character is a certain range from the enemies, I want them to start running at the player.
 
There's an Enemy Encounter script around on the internet for that (use Google). But let me tell you, it will take you a lot of time to get that script working properly. It took me a week of scripting and bug fixing to get groups of enemies to follow you when you engage one of them, etc. in an automatic system, and I only just finished it recently. X_x You'll also need a Pathfinding script, and have to edit the Enemy Encounter script to use the Pathfinding command for the enemy to return to its original location once the hero is far enough out of the view range of the enemy.
 
You can also try a "View Range" script, try a forum/Google search. When the event is x tiles close to the player, you can turn on a switch and on a new page, simply set the movement to "Move Toward Player."
 

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