Problem with a variable that doesn't work well between class definition and global variables

You got 2 ballspeeds, one global and one in the class

Get rid of the global one and change the one in the cöass in mousePressed

1 Like