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.
Is it possible to have an animation play when a button is, not only hovered over, but hovered off/ unhovered? I'd like the hover image to fade out, like it fades in.
transform imagehover:
alpha 0.0
on hover:
alpha 0.0
linear 1.0 alpha 1.0
on idle:
linear 1.0 alpha 0.0
(no way of actually testing it, but it worked for me on positions and offsets).
Sorry it took me a while to get back. It doesn't work how I want it to, which is to fade out the hover image only. This code *works* but fades out the idle image instead, so no button shows after you hover off.
When I hover off, the images switch instantly, then idle fades out. I want Idle to stay and hover to fade out. I hope this is clear ^^;