Code: Select all
screen peter():
zorder -1
imagemap:
ground "ramki/talking-frame.png"
hover "ramki/talking-frame_hover.png"
hotspot (62, 511, 251, 65) clicked Return("talk")
hotspot (480, 509, 253, 71) clicked Return("investigate")
hotspot (357, 508, 86, 91) clicked Return("exit")
screen altar():
zorder -1
imagemap:
ground "BG/altar.png"
hover "BG/altar_hover.png"
hotspot (529, 122, 156, 154) clicked Return("redlight")
hotspot (347, 456, 166, 93) clicked Return("heart_screen")
hotspot (2, 413, 215, 186) clicked Return("exit")
(...)
label altar_dungeon:
if "altar_dungeon" not in visited:
$ visited.append("altar_dungeon")
[A lot of dialogs here]
show peter normal
menu petertalk:
peter "Blabla."
"One option":
jump petertalk
"Second Option":
jump petertalk
"Third option
jump petertalk
"That's all":
jump peter
else:
label peter:
show peter normal
call screen peter
$result = _return
if result == "talk":
jump petertalk
if result == "investigate":
call screen altar
$result = _return
if result == "heart_screen":
if "heart_screen" not in visited:
$ visited.append("heart_screen")
"Blabla."
else:
"Blabla."
if result == "redlight":
if "redlight" not in visited:
$ visited.append("redlight")
"Blabla."
else:
"Blabla."
if result == "exit":
jump peter
if result == "exit":
scene castle_underground with fade
jump castle_underground
I thought, it will be working, because it seems logical to me. But I still get an error. I hope, it's quite clear to get the point how it is supposed to work. Just like in Phoenix Wright, where when you approach a character the second, third and so time, you have an option to talk, to give something to that character and to investigate the background. So I made two screens.
One with my character - Peter. He should be visible during the choosing between talking with him and investigating the background. And there's also a button to go back to the previous location.
The other screen is the background itself. And it has some clickable elements and one exit, which should go back to the previous screen.
What have I done wrong?