How to avoid transparent edges when 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
abeplaga
Regular
Posts: 35
Joined: Mon Oct 15, 2018 10:09 am
Contact:

How to avoid transparent edges when vpunch?

#1 Post by abeplaga »

When I do a vpunch the screen shakes but on lower and upper edges appears a white line with little grey squares, which I think it is the transparent background of renpy.

Is there any way to prevent it from appearing?

Image
^ Wait a second to look at the bottom...

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How to avoid transparent edges when vpunch?

#2 Post by Imperf3kt »

Place an image below everything that is larger than your game resolution, anchored and positioned True centre.

It'll still move, but since it's big enough to cover the area, you'll never see the transparency.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

rames44
Veteran
Posts: 233
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: How to avoid transparent edges when vpunch?

#3 Post by rames44 »

Or just render the image you’re going to vpunch larger than your viewport.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to avoid transparent edges when vpunch?

#4 Post by Donmai »

Or simply leave you images as they are. To get rid of the transparency squares in your released game go to options.rpy and change

Code: Select all

define config.developer = "auto"
to

Code: Select all

define config.developer = False
before building your game distribution.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
abeplaga
Regular
Posts: 35
Joined: Mon Oct 15, 2018 10:09 am
Contact:

Re: How to avoid transparent edges when vpunch?

#5 Post by abeplaga »

Donmai wrote: Mon Jan 06, 2020 2:56 pm Or simply leave you images as they are. To get rid of the transparency squares in your released game go to options.rpy and change

Code: Select all

define config.developer = "auto"
to

Code: Select all

define config.developer = False
before building your game distribution.
Ah, thank you! If the build doesn't have that transparent thing then I'll leave it as it is :)

Post Reply

Who is online

Users browsing this forum: No registered users