[Bug] On statements not working for non-screen related transforms

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
solarProtag
Regular
Posts: 37
Joined: Sun May 28, 2017 12:17 am
Completed: http://solarprotag.weebly.com/gamedev.html
Projects: Battle Live Series
Tumblr: solarasketchbook
itch: solarprotagonist
Contact:

[Bug] On statements not working for non-screen related transforms

#1 Post by solarProtag »

I've already made a github post about this here but wanted to put this here too so that more people see it.

As of the latest update, when I try to show any non-screen related objects or items — like images for example — with a transform that contains on statements such as "on show" or "on hide" it doesn't run those parts of the transform.

For example, I have this transform in my game that calls a small "mini CG" image to the center of the screen:

Code: Select all

transform minipos:
    xalign 0.5
    yalign 0.4
    alpha 0.0
    yoffset 20
    on show:
        linear 0.3 alpha 1.0 yoffset 0
    on hide:
        linear 0.3 alpha 0.0 yoffset 20
Before this latest update it worked fine; used the on show portion when I showed it, then followed the on hide portion when I hid it. But now it's stuck at the part before the on blocks (I checked this by removing the alpha and it does indeed appear at the x and y aligns I've marked).

This works fine for any screens that use on show/hide transforms but only images are facing this issue right now.

Post Reply

Who is online

Users browsing this forum: No registered users