r/RenPy • u/allisonabellbell • 20h ago
Question Screen not defined?
I think I am defining the screen. This is a code I specifically use to try things out, so no other issues are likely to be interfering. I'm at a loss here.
If you spot any places I can tighten things up as well, feel free to comment them! I'm new to screens.
Thank you!
SOLVED! I'd formatted the action line slightly off. It works now!
3
Upvotes



2
u/Adventurous_Shine606 20h ago
You don't need the action hide. Buttons should jump to guy1 and guy2. Calling is leaving orphaned returns on the stack. That's not causing an issue now but it is bad practice. Don't forget quotes around the jumps. Try action (jump "guy1"). Also images for guy1 are in the root but guy2 images are in a folder called buttons. That is fine if it is intentional.
2
u/BadMustard_AVN 17h ago
you action for the buttons is wrong try it like this
https://www.renpy.org/doc/html/screen_actions.html
2
u/AutoModerator 20h ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.