How can I get an event's co-ords?

LostFonDrive

Veteran
Veteran
Joined
Feb 13, 2015
Messages
173
Reaction score
52
First Language
English
Primarily Uses
Probably a simple thing to do and I apologize if this is a dumb question, but basically, I'm trying to set up simple pre-existing encounters, but  only want the enemy to "approach player" when they're a certain radial distance away, and don't want to place tons of events to dictate the region.

E.g. I'm basically trying to do a condition like "if (enemy x co-ord - 3) < player's x co-ords < (enemy x co-ords + 3), then approach"

So I'm just wondering how to actually get those co-ords, is there a specific text shortcut for it?
 

LostFonDrive

Veteran
Veteran
Joined
Feb 13, 2015
Messages
173
Reaction score
52
First Language
English
Primarily Uses
Ah, so through variables, and you can set up a distance condition for the branch. Did not know that. Thanks.
 

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,268
Reaction score
1,422
First Language
English
Primarily Uses
RMXP
Consider whether you want Euclidean (radial) or Manhattan (actual tile distance) for the measurement.

*hugs*
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top