If you want a fixed path for a sprite to move along it, you can simply store coordinates in an array and make the sprite move towards the coordinates of the next point. When it has reached the point (by the way "reached a point" is a bit tricky to define for a program, but not so difficult), then move towards the next point, until end of path.
Some simple behaviour is easy to make. Once I made a program in which "entities" represented by triangles moved among obstacles and you could change the behaviour to make entities target a point, follow another entity, move away or hide away from another entity, wander randomly, or patrol an area. It is 3D display but the calculation of waypoints and movement is 2D (entities move only horizontally). If you are interested, here is the downloadable project.
http://forum.thegamecreators.com/?m=forum_view&t=150933&b=22&msg=1844661#m1844661
I admit that it's crude but it's a start... A clever AI is a great challenge. Originally I wanted to implement pathfinding as well in this little test environment, but didn't have the time.