How do I make my button unhoverable for a certain time after the screen appears?
When the screen appears, I have some animations on it and I don't want the button become hovered until the screen animations are over,
[Solved] Timer for an imagebutton.
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.
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.
- K-PSZH
- Regular
- Posts: 37
- Joined: Sun May 15, 2022 10:34 am
- Soundcloud: K-PSZH
- Location: Russia
- Contact:
[Solved] Timer for an imagebutton.
Last edited by K-PSZH on Tue May 24, 2022 10:13 am, edited 1 time in total.
Missing/forgetting a lot of simplest things and ask about them here.
Re: Timer for an imagebutton.
Code?
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
- K-PSZH
- Regular
- Posts: 37
- Joined: Sun May 15, 2022 10:34 am
- Soundcloud: K-PSZH
- Location: Russia
- Contact:
Re: Timer for an imagebutton.
Code: Select all
screen screenn:
add "gui/screenn/bg1.png" at screenn_bg_1
add "gui/screenn/bg2.png" at screenn_bg_2
imagebutton auto "gui/screenn/button_%s.png":
action Jump("labell")
xpos 0.625
ypos 0.61
Missing/forgetting a lot of simplest things and ask about them here.
- Ocelot
- Lemma-Class Veteran
- Posts: 2402
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Timer for an imagebutton.
You can add timer which will enable buttons after some time has passed:
Code: Select all
screen screenn:
default animation_end = False
add "gui/screenn/bg1.png" at screenn_bg_1
add "gui/screenn/bg2.png" at screenn_bg_2
imagebutton auto "gui/screenn/button_%s.png":
sensitive animation_end
action Jump("labell")
xpos 0.625
ypos 0.61
timer 1.5 action SetScreenVariable("animation_end", True)
< < insert Rick Cook quote here > >
Re: Timer for an imagebutton.
For the first time I hear about the operator, sensitiveOcelot wrote: ↑Tue May 24, 2022 9:48 am You can add timer which will enable buttons after some time has passed:Code: Select all
screen screenn: default animation_end = False add "gui/screenn/bg1.png" at screenn_bg_1 add "gui/screenn/bg2.png" at screenn_bg_2 imagebutton auto "gui/screenn/button_%s.png": sensitive animation_end action Jump("labell") xpos 0.625 ypos 0.61 timer 1.5 action SetScreenVariable("animation_end", True)
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
- K-PSZH
- Regular
- Posts: 37
- Joined: Sun May 15, 2022 10:34 am
- Soundcloud: K-PSZH
- Location: Russia
- Contact:
Re: Timer for an imagebutton.
Amazing. Thanks!Ocelot wrote: ↑Tue May 24, 2022 9:48 am You can add timer which will enable buttons after some time has passed:Code: Select all
screen screenn: default animation_end = False add "gui/screenn/bg1.png" at screenn_bg_1 add "gui/screenn/bg2.png" at screenn_bg_2 imagebutton auto "gui/screenn/button_%s.png": sensitive animation_end action Jump("labell") xpos 0.625 ypos 0.61 timer 1.5 action SetScreenVariable("animation_end", True)
Missing/forgetting a lot of simplest things and ask about them here.
Who is online
Users browsing this forum: Majestic-12 [Bot]