Hey guys! I found this site today and was wondering if you guys could help me out here. My teacher assigned us this homework assignment today. I was working on my code and was pretty deep into it, so I didn't here him explaining how to do it. He's kind of an a-hole, so he didn't repeat himself. But here's basically how it goes.
I have a box. Now in that box, i have an x in the middle. I need to make that x move, not jump, move to the bottom right, then move across to the bottom left, move diagonally to the top right, move across to the top left, and move diagonally back to the starting point. And I need to keep it moving forever in a loop, but I can use only one loop. And the user must be able to stop the x from moving by hitting the space bar and then let it go by hitting it again
Can someone tell me how this works?