You probably want to use tween (or possibly pathfinding) rather than custom movement. You can have an event upon completing your tween to check conditions to decide on the following action.
Develop games in your browser. Powerful, performant & highly capable.