My game, Impossible Pong, is impossible to beat w/o glitches. Now that I have an idea of what the script looks like, I would like to make it possible. The problem is, the CPU's y axis
is always EXACTLY the y axis of the ball. Is there any way to make it so that the CPU travels to the ball's y axis more slowly, so the ball can get to the wall sprite that lets the Player get points? Thanks a lot, in advance.
Offline
I have a beatable pong game, it uses this:
a hard difficulty for a ball going 10 steps is about 550-700whenclicked
foreverglidesecs to x =distancetoball/difficultyxpos on screeny =y position of ball
Offline
Maybe you should look at some other pong projects. Like the example one!
Offline
Thanks everybody! Y'all really helped!
Offline
Or you could use the old fashioned "easing" method:
Just make sure to change the 20 to 1+the maximum level you want. If you don't Scratch will compute 1/0 and cause an error.whenclicked
foreverchange x by*mouse x-x position1/20-difficulty
Last edited by scratchisthebest (2012-04-09 18:32:12)
Offline