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.
I have some imagebuttons that I want to animate. When hovered, I want the image to appear as though it's being painted. I've been using Image Dissolve for this effect so far in my game.
However, I'm stuck I've tried a few things but I can't seem to get Image Dissolve to work (or even a normal dissolve with ATL/ alpha!)
In my game I have a vertical menu that shows a different image upon hovering for each button.
Before a few people here helped me out with the code, I had the following problem: When moving my mouse quickly over the menu buttons the unhover command would not be triggered and the hover images piled up on top of one another.
Now, I wonder how Ren'py should handle a one-second dissolve effect when you have no control over the duration of the hover. Imagine moving through the menu quickly, should the dissolve break off or finish? What happens when a new dissolve is triggered in the middle of an ongoing one?
Sorry, I have no solution, I just wanted to point out why it might be difficult, because in my case it hadn't occurred to me that I could actually hover all buttons within a second.
I wonder if your effect would work on click instead of hover.