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.
So I'm trying to do something basic I'm not quite sure how to do it. So in Function I need to make text to appear 1 after another with 1 second delay and disabled clicking in meantime.
Here is the example so you get the idea. What I'm trying to do is when player turn is over I want AI mode to be active for few second until computer is finished with his move.
def ENEMY_ATTACK_AI(self):
renpy.say(narrator,"First Attack! Wait 1 second disable clicking now automatically proceed to Second Attack!")
renpy.say(narrator,"Second Attack! Wait 1 seconds disable clicking now automatically proceed to Third Attack!")
renpy.say(narrator,"Third Attack! Wait 1 seconds disable clicking now automatically end turn or whatever...")
Last edited by Nero on Sun Aug 13, 2017 12:38 pm, edited 1 time in total.
def ENEMY_ATTACK_AI(self):
from time import sleep
sleep(1.0)
renpy.say(narrator,"First Attack! Wait 1 second disable clicking now automatically proceed to Second Attack!")
sleep(1.0)
renpy.say(narrator,"Second Attack! Wait 1 seconds disable clicking now automatically proceed to Third Attack!")
sleep(1.0)
renpy.say(narrator,"Third Attack! Wait 1 seconds disable clicking now automatically end turn or whatever...")
Ok this is exact thing I want but in python function and non breakable when you click it... I haven't found a single post that explains how to make this...
renpy.say(narrator,"First Attack! Wait 1 second disable clicking now automatically proceed to Second Attack!", interact=False)
... perhaps with
renpy.pause(1.0, hard=True)
rather than importing time
If that doesn't work, have you tried {nw} etc within the strings in the calls?