#π help me with creating a game
25 messages Β· Page 1 of 1 (latest)
@waxen creek
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.
What have you made so far and what libraries are you using?
so uh I literally just created a main menu
(don't mind the colors)
I won't push for multiplayer yet, just there for testing out stuff
pygame or pygame-ce ?
Yes
pygame
I just wanna try to make buttons functional
because right now they're literally just gray boxes with words
you need to check if the mouse position is inside the coordinates of the box (which you can check using height and width of the box) and then if it is inside and a click event occurs you can draw a different screen
and the checking needs to be done in the gameloop of course
This help channel has been closed. 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.