Skip to content
Advertisement

Why won’t my Pygame sprite jump code work?

I am trying to make my Pygame sprite jump so I followed a tutorial and this is what it gave me. But it doesn’t work for some reason. What’s wrong with it

JavaScript

Advertisement

Answer

You need to set somewher isjump = True. Additionally the if isjump == False: needs an else case:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement