#๐ Gorilla Quiz
48 messages ยท Page 1 of 1 (latest)
@edgy fractal
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.
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
all of the code is inside the function so nothing runs
unless u run it from a different python script
also pygame not imported
it looks like it's missing some parts
Maybe he just pasted a part of the code
yeah
so its like a button from the main menu
so this is like a section
unnamed variables are mentioned before hand
Your indentation is off
it's not, he just explained its supposed to be inside the function
Is this meant to all be in message_display_centered?
can u share what's the problem ur having and also maybe the rest of the code
if I understand correctly then yes
that for the correct mark
I want the gorilla image to move to its new position
which on the background there are 2 points
Just a random question is it possible to make a 3d game in python?
so it supposed to gradually slide upright and then after go to the next part, where it has a different position
#python-discussion and yes
It kinda matches to the topic sorry for disturbing xD
yup
K what happens instead
the gorilla doesn't move until the next part (problemcount = 2)
so it doeosn't slide
if transition_timer < 120 and transition_timer > 0 and anscorrect:
gorilla_x += slide1x
gorilla_y -= slide1y
i was trynna make it slide with this
where are u drawing it
also what's the gameDisplay variable
not. defined in the code u provided
its the main screen
instead of screen.blitz i did gameDisplay
.blitz
so you re not implementing any sliding it seems
i am?
cuz the gorilla moves every frame
sorry that was wrong I meant that you didn't implement it in the right order
you drawing order is like
- fill screen
- draw gorilla
- move gorilla
while it should probably look more like
- fill screen
- move gorilla
- draw gorilla
oh okay let me try it
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.