[Solved] Screen action Call advances the dialogue

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
jeffster
Veteran
Posts: 421
Joined: Wed Feb 03, 2021 9:55 pm
Contact:

[Solved] Screen action Call advances the dialogue

#1 Post by jeffster »

I have a panel with buttons which can be clicked any time, including during dialogue.

The problem is that clicking those buttons advances the dialogue to the next line.

The cause seems to be that I use `action Call`.

Apparently it advances the current `say` interaction, even if I don't want to interact with the say screen.

Some of the buttons are used to

Code: Select all

show <image> at <transition>
(up to 0.5 sec long), so I have no idea how to avoid using "Call".

Is it possible somehow?

Or, is it possible to use "Call" action without triggering the `say` interaction to happen?


PS. Solution:

Use Python functions instead. They can do all that I needed:

https://www.renpy.org/doc/html/statemen ... lents.html

BTW it's probably possible, instead of "action Call(my_label)",

to use "action Function(renpy.call, my_label, from_current = True)"

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]