Thansk again for your precious help.
I have a monster on the map, sometime more then one. But I want them to move a certain way.
Basicly, this monster more following the border of the map where he can walk. But if he get on the same row or columb then the player he act differently. He will start running again the player without changing row or columb. If he enconter an obstacle, he just jam there. If he touch player he push im to the wall and stop moving(he trying to block player). If the player change row before get touch, then the monster just starting to walk like before(he continue on his direction and when touching wall he start moving like before.
I have a monster on the map, sometime more then one. But I want them to move a certain way.
Basicly, this monster more following the border of the map where he can walk. But if he get on the same row or columb then the player he act differently. He will start running again the player without changing row or columb. If he enconter an obstacle, he just jam there. If he touch player he push im to the wall and stop moving(he trying to block player). If the player change row before get touch, then the monster just starting to walk like before(he continue on his direction and when touching wall he start moving like before.