Code: Select all
screen interact1():
modal True
default x = renpy.get_mouse_pos()[0]
default y = renpy.get_mouse_pos()[1]
frame:
pos (x + 10, y + 20)
has vbox
textbutton "Poke":
clicked..........
I know I could jump to a label that can do all of this, but I was hoping something like this would exist:
Code: Select all
clicked Hide("interact1"), Play("sound", "beep.mp3", True), SetVariable("isActive", 1), [b]Pause(2.5)[/b], SetVariable("isActive", 0)
1. Hide the menu
2. Play a sound
3. Set a variable to 1
4. Pause for 2 and a half seconds <- This is what I need help with. Is this possible somehow?
5. Set the variable back to 0.