This is what I have so far, combining pwisaguacate's code from this thread here with screens: http://lemmasoft.renai.us/forums/viewto ... =8&t=21136
(No doubt there's an easier way to accomplish this, but like I said I have no idea what I'm doing)
From my main script file:
Code: Select all
label roulette:
$ test = renpy.random.randint(1, 4)
$ survived = 0
if test != 1:
call screen timeout_event_a
if test != 2:
call screen timeout_event_w
if test != 3:
call screen timeout_event_s
if test != 4:
call screen timeout_event_d
label success:
"You survived."
$ survived += 1
if survived == 5:
"You survived 5 times."
return
else:
jump roulette
label failure:
"You failed."
return
Code: Select all
screen timeout_event_a:
frame:
xpadding 10
ypadding 10
xalign 0.5
yalign 0.5
vbox:
text "Press A!"
key "a" action Jump("success")
timer 3.0 action Jump("failure")
screen timeout_event_w:
frame:
xpadding 10
ypadding 10
xalign 0.5
yalign 0.5
vbox:
text "Press W!"
key "w" action Jump("success")
timer 3.0 action Jump("failure")
screen timeout_event_s:
frame:
xpadding 10
ypadding 10
xalign 0.5
yalign 0.5
vbox:
text "Press S!"
key "s" action Jump("success")
timer 3.0 action Jump("failure")
screen timeout_event_d:
frame:
xpadding 10
ypadding 10
xalign 0.5
yalign 0.5
vbox:
text "Press D!"
key "d" action Jump("success")
timer 3.0 action Jump("failure")
I'd really appreciate some help or input, if someone could point me in the right direction?