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.
scene forest
show mann
show expression AlphaMask("forestshadow", At("mann", center)) as mask
show person2 at right
show expression AlphaMask("forestshadow", At("person2", right)) as mask2
with dissolve
So, I was wondering if there is a better way to get this effect without using it n times at the same time. If I could just use one it one time but on every image that I want to?
I was thinking about something like "show layer master at ..." but that would also show the effect on the background image and that is not what I want.
henne wrote: ↑Thu Jun 10, 2021 5:07 am
I was thinking about something like "show layer master at ..." but that would also show the effect on the background image and that is not what I want.
If that is the only problem you have with this approach, have you thought of displaying images which need shadows and those who doesn't on different layers?
transform forestshadow_still:
"images/bg/waldschatten1.png"
label start:
scene forest
show eileen happy
show layer master at forestshadow_still
with dissolve
e "You've created a new Ren'Py game."
I can see the effect for a split second with nothing else there (the time of the dissolve, I guess) and then everything looks like it was never there. I use the normal master-layer in this case because I was just testing it, thought maybe it would just not work in my game, so I started a new one as a test.