There are a lot of mini games. One of them offers player to react properly to some events.
There is a timer that periodically triggers some event. The player sees event text in Ren'Py basic spaech placement and needs to click one of theree imgbuttons.
Timer triggers a fucntion with the code:
Code: Select all
def operate_cave_action(action):
......
renpy.hide_screen("ch6_countdown")
renpy.invoke_in_new_context(renpy.say, "", message)
renpy.call("ch6_idle")
return
Code: Select all
label ch6_idle:
........
$ ch6_timer_range = max(ch6_timer_range - ch6_timer_reduce, ch6_timer_min)
$ ch6_time = ch6_timer_range
$ ch6_event = roll_cave_enent()
show screen ch6_countdown()
$ ch6_event_text = ch6_cave_events[ch6_event]
label ch6_action_blocker:
"[ch6_event_text]"
After finishing that mini-game the basic Ren'Py field that displays text continue to display event text when all other renpy.say functions are fulfiled.
That make me think that I don't finish some context or smth like that.
Is that OK or I need to change something in my code?
Thank you!