Button on Hover Randomly Gets Thinner Borders

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
User avatar
Posts: 284
Joined: Fri Nov 27, 2015 9:02 am
Completed: Lads in Distress (NaNoRenO '16), Red String of Fate, AIRIS
Projects: Lads in Distress (Expansion), Reanimation Scheme
Organization: Wind Chimes Games

Button on Hover Randomly Gets Thinner Borders

#1 Post by Windchimes » Tue May 21, 2019 2:35 am


So I just ran into a really weird problem with buttons. For some reason, when I hover over the button, it makes the left border of the border randomly get thinner. Here's a gif demonstrating the problem: https://gyazo.com/755831aabb927df2c7db96016a350f2c

I have indeed double checked to make sure the idle and hover images have the exact same width of borders. It shouldn't be a problem with my images, and in fact, it seems to happen randomly, because I copy and pasted the exact same button code to the left side of my screen under an identical vbox (just with a different ypos), but the problem doesn't occur on the left side of the page: https://gyazo.com/0808ea8da61f25850228e9bd3d52bf05

The code for my button isn't anything special:

Code: Select all

            at music_button_transform  # just a simple transform that's like on idle: alpha 0.7 on hover: alpha 1.0
            xsize 347
            ysize 135
            insensitive_background "gui/music/locked_music_box.png"
            idle_background "gui/music/unlocked_music_box_idle.png"
            hover_background "gui/music/unlocked_music_box_hover.png"
            focus_mask True
            action mr.Play(<music track file path>)
I'm very confused. Would greatly appreciate any help! Thanks in advance!
Image Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], TDL