Increase speed using the same sprite--- DIFFERENT MODES

Hello everyone,

One of my students is working on a two player ping pong game. The player who reaches 100 points wins, but my student wants the ball to move faster every 10 or 20 points

any ideas?

Hi @dajanim,

A fun game! Changing velocity would make it even more challenging. It seems simple enough but the change in velocity depending on the direction it is going adds a little to the difficulty. My suggestion is pretty simple. I created variables for x and y speed and then variables that kept track of whether it was going up or down. Then created if statements for change in score. I have a sample here. It changes speed every 5 points for PlayerOne. It does not also adjust velocity for X so that would need to be added.

I’m sure others will have suggestions as well.

Good luck!
~Michelle