RPG Maker Forums

I am trying to make a little script in Ace that will position an event a certain number of tiles away from the player, in a random direction, such that it could be given a "move toward player" move route that would eventually put it on the player's tile (or right next to).


So it's not really a pathfinding script - if there's an obstacle or passage issue that would force the event to move away from the player to get around it, that would be an invalid starting point. 


The two approaches I can come up with are to start with all tiles that are X distance away, and simulate a 'move toward player' repeated route and see which ones don't get blocked, or to start at the player's position and spread out in all directions until I end up X tiles away.  I think both options have drawbacks.  Looking for some suggestions on how to best handle this.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top