Custom Transform Repeats

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
Discostar
Regular
Posts: 40
Joined: Mon Mar 10, 2014 10:29 am
Contact:

Custom Transform Repeats

#1 Post by Discostar »

I *think* I'm having this problem:
https://github.com/renpy/renpy/issues/1243

I have a screen button with a custom transform.

Code: Select all

transform my_moveintop:
    on show:
        alpha .0
        ypos -5
        parallel:
            linear .3 alpha 1.0
        parallel:
            linear .5 ypos 0
    on hide:
        alpha 1.0
        parallel:
            linear .3 alpha .0
        parallel:
            linear .5 ypos -5

Code: Select all

screen my_screen:
    frame:
        at my_moveintop
        imagebutton auto ...etc.
Every time dialogue is advanced, the my_moveintop transform is applied to the screen button. Essentially repeating the transform animation on the screen every time a character has a line of dialogue.

Is it me? Is it Renpy?
What do I do?

Thank you in advance!

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Custom Transform Repeats

#2 Post by Remix »

Does it do the same if using the pseudo event "on start:" ?

Also getting transform glitches here on 6.99.13 ... on show wouldn't even do anything to choice buttons
Frameworks & Scriptlets:

User avatar
Discostar
Regular
Posts: 40
Joined: Mon Mar 10, 2014 10:29 am
Contact:

Re: Custom Transform Repeats

#3 Post by Discostar »

Sadly, "on start" had no effect.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Custom Transform Repeats

#4 Post by Remix »

Can you replicate the error in a mini script with all the needed code, making it easier for people to test and maybe help fix?
(basically a script.rpy that needs no images (use either Text or Solid) and calls/shows the screen in the manner you do that makes the issue happen)
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]