I am currently working on quite complex project. Anyway, im not gonna go into deeper details. What I am stuck with is following function.
What I've got so far is basically a picture, and what I am trying to do is to set continuous movement to it, allow the user to control the directions of its movement by pressing "Up" , "Down", "Left " and "Right" key. The best example I can base my idea on is "Snake" game.
I don't have much of a code, however I am willing to upload it upon request.