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.
init python:
# Generate random floating number between min and max
def randomFloatPause(min, max):
return renpy.random.uniform(min, max)
# Generate random integer number between min and max
def randomIntPause(min, max):
return renpy.random.randint(min,max)
init:
image bg disco:
choice:
"bg disco1"
choice:
"bg disco2"
choice:
"bg disco3"
choice:
"bg disco4"
pause (randomFloatPause(0.5, 2))
# pause (randomIntPause(1, 2))
repeat