Getting a Followers Coordinates

I'm trying to find a way to get the X and Y coordinate of a specific follower and then place those values into a variable.

This way when a specific event happens I can move my followers based upon where they are located. For example if my follower is a space below me I want them to move up beside me but, if they are already beside me I don't want them to move at all.

Thanks in advance to anyone who can shed some light on this.
How are you making your followers move?

Control Variables: X = Script: $game_followers[#].x
Control Variables: Y = Script: $game_followers[#].y

where # is the follower number, remembering that the first follower is 0, not 1.
How are you making your followers move?

Control Variables: X = Script: $game_followers[#].x
Control Variables: Y = Script: $game_followers[#].y

where # is the follower number, remembering that the first follower is 0, not 1.

Thanks for your response, for moving the followers I'm using Nelderson's "Follower Move Route" script.

Unfortunately I'm getting the attached undefined method when I try your script in the control variable. I tried it on a fresh project too to rule out script conflicts and I received the same error. Any ideas?

This is what I have in the script section of the control variable $game_followers[0].y
Sorry - can you try $game_player.followers[#] instead?
Sorry - can you try $game_player.followers[#] instead?

Bingo that's the one! Thanks Shaz you're the best!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/getting-a-followers-coordinates.119512/