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.
I have a screen and some images that I want to hide temporarily whenever I show the options for the choice menu and then reappear once you have selected a choice. Is there anyway to do this? I've tried looking into tags and it causes one screen to vanish but then I have to show back all the screens manually. My images are also layered images and for some reason I can't get the tag to work on there either.
screen choice(items):
style_prefix "choice"
on "show" action Hide("hud_bottom")
on "hide" action Show("hud_bottom")
vbox:
for i in items:
textbutton i.caption action i.action
...and thanks for all the fish.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
So far this doesn't seem to be doing anything. The hud_bottom screen still stays up when the choice menu appears and after I have selected a choice, the choice screen remains up. If I move forward to another choice it does the same thing, only the choices change but still stay up on the screen as well allowing me to click on them indefinitely. I have tried messing around with it to the best of my own ability with the tags removed and still nothing.
screen choice(items):
style_prefix "choice"
on "show" action Hide("hud_bottom", dissolve)
on "hide" action Show("hud_bottom", dissolve)
vbox:
for i in items:
textbutton i.caption action i.action
add "choice_screen.png"
This is the code that I now have for the choice screen with the added actions for hide and show.
philat wrote: ↑Sat Feb 29, 2020 1:03 am
I probably wouldn't bother with show/hide and use a variable to toggle the transform alpha between 1 and 0 instead.
Like have it trigger a flag on menu show that causes the screen to change alpha depending if the flag is true or not?
Like this?
It seems to work when I manually switch the variable but I'm not certain how to get it to be automated when the choice screen is active. I thought this might be it but it's not.
philat wrote: ↑Sat Feb 29, 2020 3:24 am
It should work. Maybe try adding replace, replaced (same as on show and hide).
Oh! That did it! Not certain which one is working but having all four of them in there did it! Thank you so much!
Now if I can get this to also work on images and sprites I will be good to go, but seeing how this part is finally done I think I might be able to figure that out.