Transform in Composite Layer or screens with zorder

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
oza
Newbie
Posts: 17
Joined: Sat Sep 17, 2011 7:27 am
Projects: 60000 Thou
Location: Empire
Contact:

Transform in Composite Layer or screens with zorder

#1 Post by oza »

Hi there.

For several days I've been working on the problem and can not understand how can I solve it.
Let me explain. I have 4 sprites: background, character, walltexture with window and effect.
Character is a LiveComposite (emotions etc).
Walltexture just a transparent texture (image "images/wall.png")
Effect is a transparent png (appears via screen effect_exp_fire) I want to see under walltexture
I tried compose it with screen:

Code: Select all

screen effect_exp_fire():
    zorder 100
    add "images/effect_fire.png" at tr_effect_fire(2.5)

transform tr_effect_fire(ddel):
    on show:
        alpha 0
        pause ddel
        ease ddel alpha 1
    on hide:
        pause ddel
        ease ddel alpha 0
And then in game:

Code: Select all

label location_cycling:
    scene bg_chamber # background
    show character_1 # character obviously
    show walltexture # wall with window
    # here is cycling
    jump location_cycling
    
# then I click on textbutton to jump here
label show_fire:
    show screen effect_exp_fire # effect with fire I want to see under walltexture
    pause 2.5
    hide screen effect_exp_fire # hide effect
    jump location_cycling

So, its not working. I see the pause 2.5, but not see effect. I tried to change zorder and layers (config.layer etc)

Well, then I tried apply transform to layer in LiveComposite, but Transform() didn't support arguments like alpha 0.0 to alpha 1.0 through ease 0.4 or something.

What I'm doing wrong? halp

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Transform in Composite Layer or screens with zorder

#2 Post by Errilhl »

Just hide the walltexture and reapply it on the label show_fire?

label show_fire:
hide walltexture
show screen effect_exp_fire # effect with fire I want to see under walltexture
show walltexture
pause 2.5
hide screen effect_exp_fire # hide effect
jump location_cycling

That should work?
Currently working on: Image

User avatar
oza
Newbie
Posts: 17
Joined: Sat Sep 17, 2011 7:27 am
Projects: 60000 Thou
Location: Empire
Contact:

Re: Transform in Composite Layer or screens with zorder

#3 Post by oza »

Errilhl wrote: Wed Mar 14, 2018 5:58 am Just hide the walltexture and reapply it on the label show_fire?

label show_fire:
hide walltexture
show screen effect_exp_fire # effect with fire I want to see under walltexture
show walltexture
pause 2.5
hide screen effect_exp_fire # hide effect
jump location_cycling

That should work?
Tried and nothing change. I see pause, but not effect.

Post Reply

Who is online

Users browsing this forum: 102_funny