Background dissolve removes character [SOLVED]

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
fundogmo
Newbie
Posts: 15
Joined: Thu Feb 19, 2015 12:24 am
Projects: Wingin' In: Love Can Be Such a Dragon
Tumblr: boxofsquids
Location: NYC
Contact:

Background dissolve removes character [SOLVED]

#1 Post by fundogmo » Mon May 30, 2016 4:21 am

I'm running into a simple issue that I can't seem to troubleshoot on my own.

In my game, I want to begin with a black background, introduce my character, then have a background dissolve in behind them. Pretty simple, right? Straight out of the tutorial.

Just for some reason, when the background comes in, my character dissolves away. And I can't call it back on screen. It's almost as if the background is a layer above my character, although that's just blind speculation.

My code is:
label scene01: # Intro

scene black

CHARACTER "..."

"{i}*deep breath*{/i}"

"Time to fade in."

play music "/Whimsical 1.mp3" fadein 3.0

show CHARACTER happy at char_fade, center
pause(0.3)

CHARACTER "Now it's time for the background."

show bg old_hallway with dissolve

"I've disappeared!"
"Let me try to load myself again."

show CHARACTER happy at char_fade, center

"That doesn't seem to have worked."

"..."


Swapping out 'show bg [etc]' for 'scene bg [etc]' makes it so that my character still disappears, but successfully fades back in on that second attempt.

My overall code is a horrendous mishmash of tutorial pieces and Tayruu's incredible portrait system, and so I'm willing to bet something went wrong along the way.

Since there's no traceback, here's my full code if someone is magnanimous enough to lend some advice.

https://www.dropbox.com/s/l2f6r075rh271 ... s.rpy?dl=0 - options
https://www.dropbox.com/s/p7vdor3jnnigg ... d.rpy?dl=0 - loading all asset and functions
https://www.dropbox.com/s/pto21nudtys4r ... 1.rpy?dl=0 - dialogue script (where the issue is)

Thank you very much in advance!
Last edited by fundogmo on Mon May 30, 2016 9:08 pm, edited 1 time in total.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1458
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: Background dissolve removes character

#2 Post by xavimat » Mon May 30, 2016 5:39 am

The "show" statement puts a new image over the others already showed... unless you use "behind":

Code: Select all

scene black
show eileen happy
pause
show bg old_hallway behind eileen with dissolve
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Background dissolve removes character

#3 Post by SundownKid » Mon May 30, 2016 10:53 am

Or just use

Code: Select all

scene background
show person at left
with dissolve
"Scene" makes a totally new scene and wipes everything else.
"Show" puts something on top of something else.

User avatar
fundogmo
Newbie
Posts: 15
Joined: Thu Feb 19, 2015 12:24 am
Projects: Wingin' In: Love Can Be Such a Dragon
Tumblr: boxofsquids
Location: NYC
Contact:

Re: Background dissolve removes character

#4 Post by fundogmo » Mon May 30, 2016 12:13 pm

Thank you both. Can't believe I glazed over both of those during the tutorial.

I really appreciate it!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], nyeowmi