GodSpear
I think you'd have much better luck getting help if you write out exactly what your goal is. For example:
"I want the player to be able to click somewhere in the layout, and then the HeroMale Sprite follows a path to that spot. The HeroMale Sprite should move in a grid, so it only moves up, down, left, and right."
I'm guessing that English is not your native language, so just do your best.
Referencing another game's behavior (WarSpear Online) requires us to know how that game's movement works, and severely limits the number of people who could help you. Based on what you've said so far, I think I know what your goal is. Check out this Capx:
Capx
I hope this helps.