Background won't show up! Please help

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
RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Background won't show up! Please help

#1 Post by RedShoebox » Tue Apr 30, 2013 9:30 pm

Hi, I'm having an issue with scripting. I'm trying to get my background into the game, and though the script looks like this:

Code: Select all

image bg mount = "mount.jpeg"

define j = Character('Jae-Sun', color="#c8ffc8")

image jae happy = "jae_happy.png"
image jae grumpy = "jae_grumpy.png"


# The game starts here.
label start:
    
    scene bg mount
    show jae happy
    with dissolve
and even though my background image ("mount.jpg") is in the correct folder, it still won't show up. It just comes up as a plain white background when I launch my game.

Can anyone help me?

User avatar
Cinto
Regular
Posts: 42
Joined: Sat Apr 27, 2013 11:36 pm
Tumblr: geckcellent.tumblr.com
Contact:

Re: Background won't show up! Please help

#2 Post by Cinto » Tue Apr 30, 2013 10:10 pm

You have "mount.jpeg". Is that it?

RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Re: Background won't show up! Please help

#3 Post by RedShoebox » Tue Apr 30, 2013 10:41 pm

I tried that, but it didn't seem to work. I even tried changing the file format, and still, nothing.

User avatar
DestinyFailsUs
Regular
Posts: 100
Joined: Fri Mar 01, 2013 2:08 am
Completed: Destiny Fails Us: A New Life, Make It Last
Projects: Destiny Fails Us: A New Life, Make It Last
Organization: Strawberry Dagger Studio
Tumblr: DestinyFailsUs
Deviantart: DestinyFailsUs
itch: Sbds
Contact:

Re: Background won't show up! Please help

#4 Post by DestinyFailsUs » Tue Apr 30, 2013 11:28 pm

Just curious, is the background the correct size to fit the screen?

I once was creating a test background very quickly, and accidentally saved before I resized it to the right resolution, and it only showed a small portion of the image, so I just figured I'd ask.

RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Re: Background won't show up! Please help

#5 Post by RedShoebox » Wed May 01, 2013 7:50 pm

Yes, I've even re-sized the background, and still, it won't show up.

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 won't show up! Please help

#6 Post by xavimat » Wed May 01, 2013 8:05 pm

Is it possible that the word "mount" is a reserved word?
Try changing it.
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)

RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Re: Background won't show up! Please help

#7 Post by RedShoebox » Wed May 01, 2013 8:18 pm

I've tried changing it to "mountains", "mountainpic", "bg mountains", etc., I've even tried using a different file altogether. That one was clouds.jpg, and it was defined as "clouds", "cloud", "bg clouds" and even that one won't show up.

User avatar
mugenjohncel
Hentai Poofter
Posts: 2117
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: Background won't show up! Please help

#8 Post by mugenjohncel » Wed May 01, 2013 11:10 pm

Code: Select all


image bg_mount = "mount.jpg"

define j = Character('Jae-Sun', color="#c8ffc8")

image jae happy = "jae_happy.png"
image jae grumpy = "jae_grumpy.png"


# The game starts here.
label start:
    
    scene bg_mount
    show jae happy
    with dissolve
Use this one...

RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Re: Background won't show up! Please help

#9 Post by RedShoebox » Wed May 01, 2013 11:23 pm

Nope, that didn't work. :/ Same thing happens.

User avatar
mugenjohncel
Hentai Poofter
Posts: 2117
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: Background won't show up! Please help

#10 Post by mugenjohncel » Wed May 01, 2013 11:24 pm

Hmm... can you send me a trimmed version of your work so we can look at it?...

"POOF" (Disappears)

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Background won't show up! Please help

#11 Post by Kato » Thu May 02, 2013 5:55 am

If you tried Uncle Mugen's script, all I can think of is the image is either not a jpeg or in the wrong directory? What happens when you try run the game, does it say it's not there? Is there a black screen? Is the just the transparent grid that shows?

Edit: Didn't see the plain white bit... Huh :/ I'm afraid without seeing the script and the directory I have no clue why it isn't working...
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

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 won't show up! Please help

#12 Post by xavimat » Thu May 02, 2013 3:00 pm

Certainly, the problem is not in the code. The code is OK.
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)

RedShoebox
Newbie
Posts: 6
Joined: Tue Apr 30, 2013 9:25 pm
Contact:

Re: Background won't show up! Please help

#13 Post by RedShoebox » Thu May 02, 2013 6:07 pm

My character picture comes up, and the background image I want is in the same folder.
Here is the whole script:

Code: Select all

image bg_mount = "mount.jpg"

define j = Character('Jae-Sun', color="#c8ffc8")

image jae happy = "jae_happy.png"
image jae grumpy = "jae_grumpy.png"


# The game starts here.
label start:
    
    scene bg_mount
    show jae happy
    with dissolve

    j "Hi there! Welcome to Elaine's test game!"

    j "I'm only here for show. Haha."
    
    j "Would you like to have a look around?"
    
menu:
    "Sure, why not.":
        jump choice1_yes
        
    "No thanks.":
        jump choice1_no

label choice1_yes:
    
    $menu_flag = True
    
    j "Alright! You're pretty cool."
    
    jump choice1_done
    
label choice1_no:
    
    $menu_flag = False
    
    show jae grumpy
    
    j "Well, fine. Who needs ya."
    
    jump choice1_done
    
label choice1_done:
    
    # ... the game continues here.
    
if menu_flag:
    
    j "So you said you wanted a look around? Cool."
    
else:
    
    j "Anyway."
    
    
label menu_flag_done:
    
    show jae happy

    j "Let's get this show on the road."
    
    
    
    j "So this is a test game, as I said."
    
    j "Basically, it's just for experimental purposes."

    return

User avatar
mugenjohncel
Hentai Poofter
Posts: 2117
Joined: Sat Feb 04, 2006 11:13 pm
Organization: Studio Mugenjohncel
Location: Philippines
Contact:

Re: Background won't show up! Please help

#14 Post by mugenjohncel » Thu May 02, 2013 6:33 pm

RedShoebox wrote:My character picture comes up, and the background image I want is in the same folder.
Here is the whole script:
You may want to try this code variation where I lumped together all the images and the character under an init...

I'll be waiting warmly for results...

Code: Select all

init:
    image bg_mount = "mount.jpg"
    image jae happy = "jae_happy.png"
    image jae grumpy = "jae_grumpy.png"

    $ j = Character('Jae-Sun', color="#c8ffc8")

# The game starts here.
label start:
    
    scene bg_mount
    show jae happy
    with dissolve

    j "Hi there! Welcome to Elaine's test game!"

    j "I'm only here for show. Haha."
    
    j "Would you like to have a look around?"
    
menu:
    "Sure, why not.":
        jump choice1_yes
        
    "No thanks.":
        jump choice1_no

label choice1_yes:
    
    $menu_flag = True
    
    j "Alright! You're pretty cool."
    
    jump choice1_done
    
label choice1_no:
    
    $menu_flag = False
    
    show jae grumpy
    
    j "Well, fine. Who needs ya."
    
    jump choice1_done
    
label choice1_done:
    
    # ... the game continues here.
    
if menu_flag:
    
    j "So you said you wanted a look around? Cool."
    
else:
    
    j "Anyway."
    
    
label menu_flag_done:
    
    show jae happy

    j "Let's get this show on the road."
    
    
    
    j "So this is a test game, as I said."
    
    j "Basically, it's just for experimental purposes."

    return
"POOF" (Disappears)

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot, zyric