[RM2K3] HOW TO GET NPC TO SEE PLAYER?

Posts

Pages: 1
Hi,

I've gotten to the point where I'm placing my first encounter, and I need to get an NPC to see the hero 5 spaces away. I've used Get Player Location however there doesn't seem to be a way to define what happens afterwards, how many spaces away, etc.

How would I go about getting this NPC to see my player at a certain distance?
You can get both enemy and player X and Y locations inside variables (preferrably using parallel events). Then you can just calculate whether the difference between player and enemy X/Y is less or equal than 5.

You might also want to add a facing condition. For instance, if player X > enemy Y, enemy is supposed to be facing right (or at least not facing left).
pianotm
The TM is for Totally Magical.
32388
Also, if your NPC is stationary, you can make it easy by adding a touch tile below player that triggers the NPC event.
I find the best way is to use this tutorial - http://rpgmaker.net/tutorials/16/

Set up a radius of detection and use event facing options to limit it to half the circle in front of the event. Closest thing to true sight you can get with simple events.
NPC is stationary, so this will make it alot easier. Thanks guys!
Pages: 1