ATL animation in imagebutton hover works only once

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
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

ATL animation in imagebutton hover works only once

#1 Post by Kia »

I got this:

Code: Select all

image khov:
    "ui/1.png"
    "ui/2.png" with Dissolve(0.5, alpha=True)

label keys:
    screen key1:
        imagebutton xalign 0.4 yalign 0.74 xmaximum 100 ymaximum 100 idle "ui/1.png" hover "khov" focus_mask True action Jump("jmp1")
    show screen key1
return
trying to give some animation to buttons on hover but the hover animation works only once and after that it's just same old boring button. got any idea how to fix it the simple way?

User avatar
octacon100
Regular
Posts: 163
Joined: Thu Sep 12, 2013 11:23 pm
Projects: Regeria Hope
Organization: Golden Game Barn
IRC Nick: Octacon100
Location: Boston, MA
Contact:

Re: ATL animation in imagebutton hover works only once

#2 Post by octacon100 »

Did the repeat block work for you?

http://www.renpy.org/doc/html/atl.html

Code: Select all

transform left_to_right:
    xalign 0.0
    linear 2.0 yalign 1.0
    repeat
Image
Current Digital Projects -
Image
Regiera Hope Completed Game Forum Post

User avatar
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: ATL animation in imagebutton hover works only once

#3 Post by Kia »

octacon100 wrote:Did the repeat block work for you?
well I don't want to repeat it all the time. I just want it to do the animation each time it shows the hover image.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: ATL animation in imagebutton hover works only once

#4 Post by Donmai »

Octacon gave a good idea, though. Maybe not the repeat block, but ATL external events may be what you're after?
http://www.renpy.org/doc/html/atl.html#external-events
http://lemmasoft.renai.us/forums/viewto ... =8&t=28120
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Kia
Eileen-Class Veteran
Posts: 1039
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: ATL animation in imagebutton hover works only once

#5 Post by Kia »

thanks Donmai that was a really good example now I have to figure out how to make transformations I need in ATL.
do you by any chance know a good example on crop I'm trying to make a sliding button and I have no idea what I'm doing :mrgreen:

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: ATL animation in imagebutton hover works only once

#6 Post by Donmai »

There 's a good n' old reference thread here:
http://lemmasoft.renai.us/forums/viewto ... =8&t=10404
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: No registered users