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: 34
Joined: Mon Oct 15, 2018 10:09 am
Contact:

How to avoid transparent edges when vpunch?

#1 Post by abeplaga » Sun Jan 05, 2020 11:33 pm

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: 2998
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: How to avoid transparent edges when vpunch?

#2 Post by Imperf3kt » Mon Jan 06, 2020 12:01 am

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.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

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

Re: How to avoid transparent edges when vpunch?

#3 Post by rames44 » Mon Jan 06, 2020 1:00 pm

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

User avatar
Donmai
Eileen-Class Veteran
Posts: 1884
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
Projects: Slumberland
Location: Brazil
Contact:

Re: How to avoid transparent edges when vpunch?

#4 Post by Donmai » 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.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

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

Re: How to avoid transparent edges when vpunch?

#5 Post by abeplaga » Wed Jan 08, 2020 8:41 pm

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: Google [Bot], hell_oh_world, SavedByZero