How can I make it so that replit won’t FileNotFound me? This may also happen to multiple other cases of my game since it uses the same method to get images.
cactus_img = pygame.image.load('cactus_bricks.png')
You’ll need to upload all the files into the repl.
Then, click the Upload File button and upload the image files into the repl.
Hope this helps!
I did what you said but the repl said that there was a new error after I started the game and pressed a key. In the consle it said the ‘mixer’ was not iniciated. Please help.
The images are (hopefully) all uploaded. The functions and the music won’t work.
I ran your repl and everything seems fine, the Output window loads.
The output window loads but after you click the window and press start, the window just ends.
Can you find the reason?
The reason the window ends is because of a mixer error. To fix this, go to the topic linked below and go through the
entire thread (there are two things you have to do).
Hi, Im using tkinter and pygame, but then it appear this error:
Traceback (most recent call last):
File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
File "/home/runner/a/main.py", line 10, in reproducir_cancion
pygame.error: mixer not initialized
here is the lin:
I will try the module.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.