Adding transitions to a style whilst it changes prefixes

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
cheetoriko
Newbie
Posts: 1
Joined: Sat Mar 13, 2021 2:36 pm
Contact:

Adding transitions to a style whilst it changes prefixes

#1 Post by cheetoriko »

Hello. I am wondering if it is possible to add a transition to a style whilst it changes prefix states (eg: unhovered to hovered). Is there a function to do so?

Here is the code I have:

style mbutton:
hover_background Frame("gui/frame.png",5,5)
padding (10,10)
xalign 0.5


I would like to have a transition for the hover_background. This style is for a text button.

The transition I would like to have is a dissolve or something of the sort. I am aware of ATL and With(transition) action, but I don't know how to apply these functions to help me. I have looked around the forums for something like this, yet all of them apply to image buttons.

Thank you for any help! I really appreciate it.

Post Reply

Who is online

Users browsing this forum: Google [Bot]