Without more information or any code, it would be difficult to help you. What kind of code where you trying? What kind of scenario did the code come from? What kind of world are you working in (what is the 'super' call used in your world class)? Will your actor be changing images or rotating when changing directions? Answering questions like these will determine the best course to proceed in.