Need Help?

Hi i got a problem and cannot solve it or find an answer,

im creating a game turn by turn, i have two primary function passive and combat.

when i go in combat i need to be snap in the middle of closer tiles until the combat over after that need to be release of that actor?