Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
screen menugame:
add "gui/Inicio/iniciooscuro.jpg"
imagebutton auto "gui/Inicio/masculino_%s.png" xpos 0 ypos 0 focus_mask True action ShowMenu("seguro") activate_sound ("musica/menu/Blip2.wav") hovered [ Play ("test_alz3", "sfx/click.wav") ]
imagebutton auto "gui/Inicio/femenino_%s.png" xpos 1130 ypos 0 focus_mask True action ShowMenu("seguro2") activate_sound ("musica/menu/Blip2.wav") hovered [ Play ("test_alz3", "sfx/click.wav") ]
screen seguro:
add "gui/Inicio/iniciooscuro.jpg"
use menugame
imagebutton auto "gui/Inicio/simmas_%s.png" xpos 820 ypos 250 focus_mask
imagebutton auto "gui/Inicio/sure_%s.png" xpos 700 ypos 550 focus_mask
imagebutton auto "gui/Inicio/si_%s.png" xpos 730 ypos 750 focus_mask True action SetVariable("hombre", "True"), Jump("next") activate_sound ("musica/menu/Blip2.wav") hovered [ Play ("test_alz3", "sfx/click.wav") ]
imagebutton auto "gui/Inicio/no_%s.png" xpos 1030 ypos 750 focus_mask True action ShowMenu("menu") activate_sound ("musica/menu/Blip2.wav") hovered [ Play ("test_alz3", "sfx/click.wav") ]
My intention is to give the player two buttons, one of them will activate a variable and use a jump, but once you have made the jump the previous screen does not finish going, I would like to know a way to remove this screen once the player selects a button.
Thank you very much.
Last edited by zabuzaeldemonio on Mon Feb 26, 2018 9:11 pm, edited 2 times in total.
You're including it with the line 'use menu.' Remove that line. You also probably don't want to name your screen 'menu' (not sure if it will cause issues, but it's the tag used by the game menus), and change the ShowMenu actions to Show.
Still the same, maybe I should comment a bit on what happens when the player hits the button; once you select it, the screen remains in the background while the dialogue continues, even if you cover it with some scene background, when you right click you can still see this screen.
Wait, I did not know that I had to combine the two things you told me, with the menugame tag, and changing ShowMenu for Show, it works, thank you very much for the help.