It looks like this:
Code: Select all
label start:
$ input_answer = ""
$ right_answer = "lrl"
"Enter the following sequence: <--, -->, <-- and press ENTER."
$ ui.keymap(K_LEFT=ui.callsinnewcontext("left"))
$ ui.keymap(K_RIGHT=ui.callsinnewcontext("right"))
$ ui.keymap(K_UP=ui.callsinnewcontext("up"))
$ ui.keymap(K_DOWN=ui.callsinnewcontext("down"))
$ ui.keymap(K_RETURN=ui.jumps("check"))
$ ui.interact()
label check:
if input_answer == right_answer:
jump win
else:
"Fail."
jump start
label left:
show arrow_left #<----this just never shows up, even when using ui.image or renpy.show
$ input_answer = input_answer + "l"
play sound "piano-left.wav"
return
label right:
$ input_answer = input_answer + "r"
play sound "piano-right.wav"
return
label up:
$ input_answer = input_answer + "u"
play sound "piano-up.wav"
return
label down:
$ input_answer = input_answer + "d"
play sound "piano-down.wav"
return
label win:
"TOTAL VICTORY"
Code: Select all
label left:
show arrow_left
"TEEEEEXXXT." #when this is here, both the text and the image come onscreen
$ input_answer = input_answer + "l"
play sound "piano-left.wav"
returnCan someone tell me what's going on? And perhaps give suggestions about how to fix it?
Your help is kindly appreciated.
