Gallery thumbnail won't show (following Karizu's method)

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
User avatar
yoni_
Newbie
Posts: 9
Joined: Thu May 18, 2017 11:24 pm
Deviantart: nadoChan
Contact:

Gallery thumbnail won't show (following Karizu's method)

#1 Post by yoni_ » Tue May 23, 2017 8:57 am

Hey~

I am working on my CG gallery, I got pretty much everything done and working. except for the thumbnail, No matter what I do the thumbnail won't show. it's clickable but the image of the thumb won't show.

this is my code (I am following this viewtopic.php?p=415472#p415472 code)

Code: Select all

    if persistent.CG1_1_unlocked:
        imagebutton auto "GUI/extra/s-thumb4_%s.png" xpos 0 ypos 0 focus_mask True action ShowMenu('cg1_1')

Please help!

UPDATED!!

For the people who are using this code viewtopic.php?p=415472#p415472 for the gallery. The thumbnail will work but wont show, because the ground image will be overlaping it. To avoid that you should Put the thumbnail in the idle and hover.

I am using realistair's GUI just to test it out.
https://drive.google.com/open?id=0B1d6V ... 0JIZkxQbHc
https://drive.google.com/open?id=0B1d6V ... 0Rzb3JVZU0
https://drive.google.com/open?id=0B1d6V ... HZUeU56d0k

Use this code

Code: Select all

screen gallery1:
    tag menu

    imagemap:
        ground "GUI/extra/cg1.png"
        idle "GUI/extra/idle.png"
        hover "GUI/extra/hover.png"
        
        hotspot (568, 149, 181, 62) action ShowMenu ("gallery1")
        hotspot (566, 222, 177, 61) action ShowMenu ("music_room")
        hotspot (571, 297, 171, 66) action ShowMenu ("gallery3")
        hotspot (609, 519, 189, 78) action ShowMenu("main_menu")
        if persistent.CG1_1_unlocked: #to show the thumbnail if it's true
            hotspot (54, 116, 233, 121) action ShowMenu("cg1_1")
        if persistent.CG3_unlocked:
            hotspot (299, 114, 229, 124) action ShowMenu("cg3")
 
Thats all~
Last edited by yoni_ on Wed May 24, 2017 5:17 am, edited 1 time in total.

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: Gallery thumbnail won't show

#2 Post by Scribbles » Tue May 23, 2017 9:07 am

is the persistent unlocked(like you unlock it in the script and then try to view it)? and you could try moving the xpos and ypos? Those are my best guesses, but someone else might have a better idea ! :)
Image - Image -Image

User avatar
yoni_
Newbie
Posts: 9
Joined: Thu May 18, 2017 11:24 pm
Deviantart: nadoChan
Contact:

Re: Gallery thumbnail won't show

#3 Post by yoni_ » Tue May 23, 2017 10:01 am

Scribbles wrote:is the persistent unlocked(like you unlock it in the script and then try to view it)? and you could try moving the xpos and ypos? Those are my best guesses, but someone else might have a better idea ! :)
Yes I did unlock it in the code.

Code: Select all

    scene cg1 with dissolve
    
    $persistent.CG1_1_unlocked = True
    
    "..."
    
    menu:
        "Wake him":
            scene cg2 with dissolve
            $persistent.CG1_2_unlocked=True
            b"Yuri... get up."
            scene 
            jump ikki
        
        "leave him":
            b"I better go."
            jump ikki 
The xpos and ypos are right since the image is 800x600, exactly the same size of the game window.

Thanks anyway!! :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot]