Tutorial: Proximity Detection (Alternative)
Difficulty: Intermediate
RPG Maker: 2000/2003
Author: AznChipmunk

This is a tutorial that teachers you to detect the the proximity between two events. This could be used for things such as: moving closer to a waterfall for louder sound, being in the enemy's range of vision, detecting whether or not enemy/hero is in range for an area spell attack.

This example shown below is detecting whether or not the hero is close to an object.

proximity1

proximity2

If that was confusing, here's an image of it.

proximity3

So what you have at the end is the variable [Proximity] set to a number. This number is the number of tiles away from the object the hero is.
Basically, say, if [Proximity] is 6, then the Hero is 6 tiles away from the Object.

proximity4 ]



Click to Return to the Tutorials Page