Bugz?

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
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Bugz?

#1 Post by xela »

There is more but I'll post what I can right now:


=============================


Composite displayable are not being updated on transforms inside of a viewport, example:

Code: Select all

transform my_move(start, end, t):
    subpixel True
    xpos start
    linear t xpos end
    repeat
    
init python:
    config.screen_width, config.screen_height = 1366, 768

screen test():
    viewport:
        align (0.3, 0.1)
        xysize(800, 646)
        add LiveComposite((800, 646), (0, 0), Solid("#FF0000", xysize=(800, 646))) at my_move(0, -800, 10)

label start:
    call screen test
It doesn't move.

Code: Select all

transform my_move(start, end, t):
    subpixel True
    xpos start
    linear t xpos end
    repeat
    
init python:
    config.screen_width, config.screen_height = 1366, 768

screen test():
    viewport:
        align (0.3, 0.1)
        xysize(800, 646)
        add LiveComposite((800, 646), (0, 0), Solid("#FF0000", xysize=(800, 646))) at my_move(0, -800, 10)
        add Null() at my_move(800, 0, 10)

label start:
    call screen test
It is moving... after we add something else that updates the screen! Same thing if we do this with renpy.show.


=============================

Code: Select all

screen s1():
    on "show" action Hide("s2")
    on "hide" action Show("s2")
    text "I am screen 1" align (0, 0.5)
    
screen s2():
    text "I am screen 2" align (1.0, 0.5)
        
label start:
    show screen s2
    pause
    show screen s1
    pause
    hide screen s1
    # s1 screen is NOT hidden with this :(
    pause
Screen 1 remains shown after an hide statement applied to that screen if it shows another screen at the same time by on "hide" statement.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]