Is there any way of putting a menu with a limit of time to take the decisions? For example, if a monster appears and you do not react on time, something happens.
Again, sorry for my bad english. I have used a translator.
Limit of time to take decisions
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.
- Bombermans
- Newbie
- Posts: 13
- Joined: Sun Apr 01, 2007 8:27 am
- Location: Spain
- Contact:
- akemicchi
- Veteran
- Posts: 465
- Joined: Mon Dec 31, 2007 11:22 pm
- Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
- Deviantart: littlebabyshoes
- Contact:
Re: Limit of time to take decisions
Yes. Here:
http://www.renpy.org/wiki/renpy/doc/coo ... imed_menus
The main piece of code here is the ui.timer.
The first argument in the ui.timer function is the length of time to wait. It's in seconds. The second argument is the function 'ui.jumps', which is used to determine the label to jump to. When the timer runs out, it will jump to the label supplied by ui.jumps.
ui.jumps("label_here")
http://www.renpy.org/wiki/renpy/doc/coo ... imed_menus
The main piece of code here is the ui.timer.
Code: Select all
$ ui.timer(10.0, ui.jumps("menu1_slow"))
ui.jumps("label_here")
- Bombermans
- Newbie
- Posts: 13
- Joined: Sun Apr 01, 2007 8:27 am
- Location: Spain
- Contact:
Re: Limit of time to take decisions
Thank you very much. That's just what I was looking for.
Who is online
Users browsing this forum: piinkpuddiin, Semrush [Bot]