Here is the current program. Click and hold to guide character.
After figuring out stuff with the mouse over the past couple days, I finally have the character moving in an acceptable way. When you click and hold the mouse it follows the mouse around. On release, it moves to the point that the mouse was last held at.
What I've got going on now is that while the character's hitTestPoint is touching the land portion of the movie clip he can move, but when he is no longer touching the land, all movements are cancelled.
The problem I have now is that I can't ride along the edges in order to achieve a really smooth movement. I want him to stop from going past the edge of the cliff, but I would still like to be able to ride those edges without it getting stuck on them. He can still move away from the edges fine, but he can't move on them.
I've tried a few things like saving the last two positions in an array and relocating him to the former position, but that caused the same result. I figured it would make it so he's never really on the edge and could still move, but it didn't quite work that way..
If anyone knows about what I'm trying to accomplish with this and has any ideas, I'm all ears. I tried to Google this, but I really couldn't figure out what to ask. Nothing came up. Thanks in advance!