Skip to content
Advertisement

Tag: pygame

How to set framerate in Pygame?

So in response to my question (How to continuously move an image smoothly in Pygame?) I was told to set my framerate in order to do my animation. But no matter where I place it, clock.tick(60) does nothing. I do clock = pygame.time.Clock() BTW. So how do I do this? I have researched and found this (pygame clock.tick() vs framerate

How can a object detect the mouse in pygame

I have here the bubbles class and i want to do it that when you click a bubble it despawns but i dont know how the bubbles detect the mouse cursor and how the bubbles despawn. I already tried to add the mouse position function but I dont know hot to use it. And I searched on the Internet but

Pygame installed on windows, getting “pygame.error: Failed loading libwebp-7.dll” when trying to call pygame.image.load()

I’ve got python 3.9.1 running on a windows 10 machine. I have pygame 2.0.1 installed on my machine via pip (python -m pip install https://github.com/pygame/pygame/releases/download/2.0.1/pygame-2.0.1-cp39-cp39-win_amd64.whl) however on calling pygame.image.load(“file.png”) I get the error: pygame.error: Failed loading libwebp-7.dll: The specified module could not be found. I’ve tried installing through pip install pygame and running the tests in pygame.tests but they run

Pygame black screen crash [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I don’t what happened, it was working few minutes ago, but now it’s not. It’s crashing every time. I have

Advertisement