Pages: 1
Topic closed
I downloaded Scratch yesterday, but I'm pretty thorough in Scratch. I have been altering Pong for quite a while now. I need to know the formula to keep the ball moving in Pong. See, I have it so that when you click the green flag, the ball will move 15 steps in the y-axis, and then you have to click it again to have it move another 15 steps in the y-axis. I need to know how to change this. Here's my project in case you don't understand. http://scratch.mit.edu/projects/jackfitz/1066546 Picture or project would be nice.
Offline
Hi,
This should probably go in "All About Scratch."
As for your question: I'm guessing you want to make it so that you don't have to click the green flag every time? You can easily use a forever loop. You can easily put the code you already have in a "forever" loop, which makes the thing repeat itself until the project is stopped - but you might want to alter the 15 steps to, say, 2 or 3 steps - the project moves quickly!
Offline
Oh, your problem is that you're using a "wait" block. Take that out, and it'll work just fine - what the wait block does is already addressed by the "if" block right after it.
And like I said before, you may wish to change how much it changes the "Y" coordinate by a little bit less than 15.
Also, take out the "point in direction (180)" and move it to before the "Forever" block, but after "When Green Flag Clicked."
Last edited by coolstuff (2010-05-21 20:21:42)
Offline
Topic closed
Pages: 1