#๐ I need help for my code, I'm a beginner on python
46 messages ยท Page 1 of 1 (latest)
@copper cloak
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
you need to show your code
What is the problem?
The teacher told me that when you win the game or lose, it dosen't get to the end screen but I don't know how to fix it
@bold belfry
Why does your teacher have to tell you this? Are you not able to run the game yourself?
I think you need to play the game yourself to see what happens when you win or lose.
I play it
He tested my game, everything is good except that
So you played it and didn't see the end screen either?
Yes
But it is displayed.
Yes, the end screen is displayed at the end of the game. Maybe you were distracted and looked somewhere else while it was shown.
I don't understand what does he means
It's only shown when you win the game though.
Yes, the end screen is when it shows if you have won or lost.
But it's only displayed when you have won. It's not displayed when you have lost.
I add a you lost screen
Yes, but you don't display it.
I added now
It works
For me , his message dosen't make sense until you explained me
Ah, probably I wasn't good at explaining. I wasn't sure if you actually tried playing it. It should be obvious there's no end screen when you lose.
Okay, thanks.
@bold belfry
I got an error while adding a sound, in the first line,I got this error: File "main.py", line 1
import pygame
^
IndentationError: unexpected indent
๎บง
Don't indent the line then.
You only indent statements when they're inside a loop, if, etc.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.