Have a problem here.
So I wanted to make point 'n' click feature, and subsequent confirm choice. But surfaced that, for some reason, after confirm to interact with pufflet, code wont contunie. It just stops on choice button aftertext. It only work after Shift+R. What might be a reason of it?
I'm not a programmer, only artist, and do code only on guides in internet, so if I do something wrong - I will be really- really thankful for an advice.
Code: Select all
label start_room_choice:
play music ("audio/ambient/room_ambient.mp3")
if curtain:
scene room_2
else:
scene room_1
if not cloth , curtain , pufflet:
show screen item_search
else:
jump exit_start_room
pause
return
label exit_start_room:
scene room_1
show pufflet
pause
show window
screen item_search:
modal True
tag menu
imagemap:
if not curtain:
idle "images/action_obj/obj_room_normal.png"
hover "images/action_obj/obj_room_hover.png"
hotspot (397, 0, 249, 460) action Jump ("curtains_interact")
if not cloth:
idle "images/action_obj/obj_room_normal.png"
hover "images/action_obj/obj_room_hover.png"
hotspot (110, 464, 222, 255) action Jump ("cloth_interact")
else:
idle "images/action_obj/without_cloth_n.png"
hover "images/action_obj/without_cloth_h.png"
else:
idle "images/action_obj/without_curtains_n.png"
hover "images/action_obj/without_curtains_h.png"
if not cloth:
idle "images/action_obj/without_curtains_n.png"
hover "images/action_obj/without_curtains_h.png"
hotspot (110, 464, 222, 255) action Jump ("cloth_interact")
else:
idle "images/action_obj/bs_n.png"
hover "images/action_obj/bs_h.png"
imagemap:
if not pufflet:
idle "images/action_obj/puff_nor.png"
hover "images/action_obj/puff_hov.png"
hotspot (412, 412, 151, 174) action [Hide("displayText"), Jump("puffleto")]:
hovered Show("displayText")
unhovered Hide("displayText")
else:
idle "images/action_obj/pufflet.png"
screen displayText:
style_prefix "say_dialogue"
window:
id "window"
text ("Какой мягкий.. Хм. Думаю, если его передвинуть.. он сможет помочь мне добраться до мест, до которых я не могу достать.")
label puffleto:
menu pufflet:
"Передвинуть пуфик?"
"Не стоит":
$ menu_flag = False
jump start_room_choice
"Да":
$ menu_flag = True
"Малышка начала толкать пуфик."
label pufflet_interact:
hide screen item_search
$ pufflet = True
play sound("audio/sounds/push.mp3")
with fade
pause 0.2
a "мебель оказалась легче, чем выглядит. Малышке без труда удалось пододвинуть пуф к шкафу вплотную."
$ renpy.notify("Теперь ей видно что там находится.")
if not cloth , curtain , pufflet:
jump start_room_choice
jump exit_start_room
return