I tried the code…The knight is being chased. There is some problem with the updating of the enemy’s animation when the knight stops, it also stops but tends to have a disturbance in its image updating (I think perhaps due to the action of the tick…)… .in some cases depending on the direction always when the knight is stopped the enemy goes off on a tangent going off the screen. Some things definitely need to be reviewed but quite satisfied.
ps…sorry for the terrible English