hi people,
On Pong, I was wondering if there was a way to control the speed of the ball. If you want to see an example of what I am asking, just open the example pong game in scratch or see mine.
Thank You!
Eric
Offline
Yep, all you have to do is go to the variable block section and click "Make a variable"
Name it what ever you want then hit ok.
Then, in the movement script instead of a block that says something like [Move (5) steps] click and drag the new variable block the variable section that has the sides like ( and ) and place it where the 5 or other number was.
You can now change the variable in scripts with the blocks that say [Set [variable] to (_)] and [Change [variable] by (_)] and the ball will move whatever the variable is.
Last edited by colorfusion (2010-10-16 04:12:19)
Offline