pgzero

Unable to find vcvarsall.bat (Unsolved for 2022 version, Python)

Unable to find vcvarsall.bat (Unsolved for 2022 version, Python) Question: I’ve been trying to instsall pgzero library for python, but however it keeps giving me an error: "unable to find vcvarsall.bat " I have been searching over StackOverflow, it shows up how to fix it for 2017 version by installing Microsoft building tools, i did …

Total answers: 1

How can I implement on_mose_move method in pgzero?

How can I implement on_mose_move method in pgzero? Question: So I’m trying to write a simple Arkanoid game, using only pgzero (!not pygame), and I want my paddle to move not using my keyboard, but using my mouse, so that the paddle moves left or right following the cursor, how can I do that and …

Total answers: 1

Is clock.schedule_interval() valid in pygame or only pygame zero?

Is clock.schedule_interval() valid in pygame or only pygame zero? Question: I’m following a tutorial that involves pygame zero and adapting it to create a pygame program, but am haing issues with my timer. The time_left variable is set to 10 earlier, here is the rest of the code to do with the timer: def update_time_left(): …

Total answers: 2

How to I make the actor jump without stopping the entire code?

How to I make the actor jump without stopping the entire code? Question: I am attempting to make the dino jump, but when I use time.sleep(0.1) in between the dino jumping and falling, the whole game stops for 0.1 seconds. I have tried using time.sleep and that’s it as I can’t find any other useful …

Total answers: 1

Repeated key detection in PyGame Zero

Repeated key detection in PyGame Zero Question: My pgzero key press event handler does recognize a pressed key only once (until released) but does not support repeated key press events if the key is kept pressed. How can I achieve this? PS: Since pgzero is implemented using pygame perhaps a pygame solution could work… import …

Total answers: 3