[SOLVED] Custom layers don't work with vpunch

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
Moonspeck
Regular
Posts: 35
Joined: Thu Jan 07, 2016 12:30 pm
Projects: Sentimental Trickster, new BL fantasy dating sim
Organization: Lovenuts
itch: lazuli
Contact:

[SOLVED] Custom layers don't work with vpunch

#1 Post by Moonspeck »

When I use the "vpunch" command, I still see the checkered background underneath my image in the bottom part, even when I define my own layer and make it a black background (I made it bigger than 1920x1080).

I followed instructions from:
https://sleepyagents.blogspot.com/2017/ ... renpy.html
and
viewtopic.php?t=31477

This is what I put in options.rpy:

Code: Select all

define config.layers = [ 'zero', 'master', 'transient', 'screens', 'overlay'] #it was simply "config.layers" at first, but worked the same way#
This is what I put in script.rpy:

Code: Select all

image zeroblack = "zeroblack.jpg"
label start:
    show zeroblack onlayer zero
And it works with "hpunch". With "vpunch", it works above, but not below. I can still see the checkered background. If I'm missing something, or if there's a different way to avoid the checkered background, please let me know.
Last edited by Moonspeck on Tue Jan 23, 2018 2:12 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3093
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Custom layers don't work with vpunch

#2 Post by Alex »

This happened 'cause your zeroblack image anchored to the bottom of the screen. Try to show it at truecenter.

Code: Select all

show zeroblack at truecenter onlayer zero
https://www.renpy.org/doc/html/quicksta ... #positions

User avatar
Moonspeck
Regular
Posts: 35
Joined: Thu Jan 07, 2016 12:30 pm
Projects: Sentimental Trickster, new BL fantasy dating sim
Organization: Lovenuts
itch: lazuli
Contact:

Re: Custom layers don't work with vpunch

#3 Post by Moonspeck »

Alex wrote: Tue Jan 23, 2018 1:44 pm This happened 'cause your zeroblack image anchored to the bottom of the screen. Try to show it at truecenter.

Code: Select all

show zeroblack at truecenter onlayer zero
https://www.renpy.org/doc/html/quicksta ... #positions
Awesome, worked like a charm. Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users