[solved] Yes/no prompt choices not showing up

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
qualiatte
Newbie
Posts: 6
Joined: Tue Nov 25, 2014 3:03 pm
Contact:

[solved] Yes/no prompt choices not showing up

#1 Post by qualiatte » Thu Nov 27, 2014 7:52 pm

woah hey i have another question sorry. so i found a tutorial a while ago that demonstrates how to make an imagemap for the yes/no prompt. the code i have for it looks like this:

Code: Select all

screen yesno_prompt:

    modal True

     imagemap:
        ground 'yesno/yesno_ground.png'
        idle 'yesno/yesno_idle.png'
        hover 'yesno/yesno_hover.png'
        
        hotspot (445, 398, 75, 38) action yes_action
        hotspot (700, 396, 57, 33) action no_action
    add "art/0/black.png"
    
    if message == layout.ARE_YOU_SURE:
        add "yesno/yesno_areyousure.png"
    elif message == layout.DELETE_SAVE:
        add "yesno/yesno_deletesave.png"
    elif message == layout.OVERWRITE_SAVE:
        add "yesno/yesno_overwritesave.png"
    elif message == layout.LOADING:
        add "yesno/yesno_loading.png"
    elif message == layout.QUIT:
        add "yesno/yesno_areyousure.png"
    elif message == layout.MAIN_MENU:
        add "yesno/yesno_mainmenu.png"
i'm pretty sure i followed the tutorial to a t but every time i try to quit the game for some reason the yes/no choices aren't showing up? the maker of the tutorial said at the end that they had this problem too and that it was because the images they used didn't have transparent backgrounds, but mine do and i'm still getting the problem?? i've tried to fix it but nothing i do seems to work i have no idea what im doing please help
Last edited by qualiatte on Mon Apr 04, 2016 3:07 am, edited 3 times in total.

philat
Eileen-Class Veteran
Posts: 1704
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Yes/no prompt choices not showing up

#2 Post by philat » Thu Nov 27, 2014 9:27 pm

Haven't looked at it too closely, but shouldn't the add background line be before the imagemap? Screens show statements in order. If you have a fullscreen image added after the imagemap, the image would be shown on top of the imagemap, I think.

qualiatte
Newbie
Posts: 6
Joined: Tue Nov 25, 2014 3:03 pm
Contact:

Re: Yes/no prompt choices not showing up

#3 Post by qualiatte » Thu Nov 27, 2014 9:41 pm

tried it and yeah that was the problem
screens show statements in order. ill remember that from now.

thank you asfgja;sd

Post Reply

Who is online

Users browsing this forum: Bing [Bot], darkforte, Google [Bot]