How to make a 2d side scroller enemy

So how would I go about making an enemy like a green turtle or something in Mario, one that walks from one spot, then turns around and walks to the other and keeps doing that, There dosen’t seem to be any good tutorials on simple paper 2D enemies like that, Unless someone has one thanks!

Did you check-out the UnrealStickFigure2D project? It has something similar to what you are asking