"When a button is clicked, have ball 2 move back and forth, from the left edge of the screen to the middle of the screen and back, forever."
and because it is in continuation of challenge 2, it should be done without clock component. I can do it with while loop or some other complicated ideas, but it is in module 2 and before parts about loops and I don't have a simple idea for solving it.
I set heading and speed, but I think anyway I need clock component for comparing x coordinate with the middle of the screen. How can I check it without clock component?