Code: Select all
label start:
scene bg black
with fade
'Hello'
show screen test_one ### I want it to appear for only 2 seconds, while the game should continue (that is, I don't need the pause function)
menu:
'Hi':
jump one
'No':
jump two
#hide screen test_one
I assume that the "Time" command is needed here, however, no matter how I try, nothing comes out.
It would also be cool if the screen itself would activate not immediately, but after 1 second. Again, I repeat - the game must continue.
Below is the screen code, it loops one action.
Code: Select all
init -501 screen test_one():
style_prefix "choice"
timer 1/60.0 repeat True action Function(def_test)
Code: Select all
init python:
def def_test():
currentpos = renpy.get_mouse_pos()
targetpos = [1500, 600]
if currentpos[1] < targetpos[0]:
renpy.display.draw.set_mouse_pos((currentpos[0] * 9 + targetpos[0]) / 10.0, (currentpos[1] * 9 + targetpos[1]) / 10.0)