renpy/doc/reference/functions/renpy.call in new context

From Ren'Py Visual Novel Engine

Jump to: navigation, search

renpy.call_in_new_context

Function: renpy.call_in_new_context (label):

This code creates a new context, and starts executing code from that label in the new context. Rollback is disabled in the new context. (Actually, it will just bring you back to the real context.)

Use this to begin a second interaction with the user while inside an interaction.

Example

init:
    def invoke_game_menu():
        renpy.play(config.enter_sound)
        renpy.call_in_new_context('_game_menu')


Personal tools