How do I move all elements of my array to the right?

I need help with a project.

I need to make a character and be able to move that character left and right.


I have made the backround and the character and I have been given the function which detects the left key and the right key. I've also been able to move one elements of my character but I'm having difficulty moving the whole array.


Our teacher did give us a goto(x y) function but surely there must be a better way than defining around 20/30 variables and what not to move each element of the array?
Topic archived. No new replies allowed.