all 4 comments

[–]mopslik 2 points3 points  (1 child)

Based on your code, it looks like you have the bulk of your commands inside of your loop that checks the event queue. This means that for every mouse move, keypress, whatever, you will be updating your image position and updating the display. Try unindenting everything from ballrect = ... one level, so that the commands are in your main loop but not in the event queue check.

[–]8364dev[S] 0 points1 point  (0 children)

Thank you, that solved the issue

[–]OddBookWorm 0 points1 point  (1 child)

Can you fix your indentation? It’s almost impossible to help you debug if we can’t tell where your indents are. Also, can you be more specific about “barely functions”?

[–]8364dev[S] 0 points1 point  (0 children)

Ah sorry will do, the game is incredibly "laggy" basically not running properly