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:
when gf clicked forever glide <(distancetoball) / (difficulty)> secs to x = (xpos on screen) y = (y position of ball)a hard difficulty for a ball going 10 steps is about 550-700
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:
when gf clicked forever change x by (((mouse x) - (x position)) * ((1)/((20)-(difficulty)))) endJust 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. .
Last edited by scratchisthebest (2012-04-09 18:32:12)
Offline