Image is not showing up?

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
LiveTurkey
Regular
Posts: 104
Joined: Tue Dec 27, 2016 10:50 pm
Location: Brooklyn
Contact:

Image is not showing up?

#1 Post by LiveTurkey » Wed Aug 01, 2018 12:06 pm

Hey guys, I have another simple problem.

Code: Select all

define mc = Character(("[name]"), color="#fff", image = "mc")

Code: Select all

####################### MC ##############################
image mc afraid = "characters/MC/Afraid.png"
image mc angry = "characters/MC/Angry.png"
image mc blush = "characters/MC/Blush.png"
image mc confused = "characters/MC/Confused.png"
image mc disgusted = "characters/MC/Disgusted.png"
image mc flirty = "characters/MC/Flirty.png"
image mc happy = "characters/MC/Happy.png"
image mc mischievous = "characters/MC/Mischievous.png"
image mc sad = "characters/MC/Sad.png"
image mc smile = "characters/MC/Smile.png"
image mc surprised = "characters/MC/Surprised.png"

Code: Select all

scene lightBedroom with dissolve 
# Music: ??? (different from the one playing at night. More upbeat)
# Rooster alarm sound
"A sound like a foghorn rips into my ears and has me shooting out of bed before I even know what's happening."
"I stumble to the floor, tripping over my covers."
# Rooster alarm sound
"The foghorn noise goes off again and I realize it's my alarm. I wriggle out from my cocoon of blankets and stumble drowsily over to my desk, picking up my phone and pressing the button to make the god awful noise stop."
mc confused "What time..."
When I get to the "mc confused" part, nothing shows up. No sprite. What am I missing here?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 740
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1 & 2
itch: per-k-grok
Location: Sverige
Contact:

Re: Image is not showing up?

#2 Post by Per K Grok » Wed Aug 01, 2018 1:09 pm

Have you tried
----
show mc confused
mc "What time ..."
------

I think you might need 'show' the first time you show the image


possibly having mc as name for the character and the image might be a problem

compare example in the manual

Code: Select all

define e = Character("Eileen", image="eileen")

label start:

    show eileen mad
    e "I'm a little upset at you."

    e happy "But it's just a passing thing."

User avatar
LiveTurkey
Regular
Posts: 104
Joined: Tue Dec 27, 2016 10:50 pm
Location: Brooklyn
Contact:

Re: Image is not showing up?

#3 Post by LiveTurkey » Wed Aug 01, 2018 2:45 pm

Adding a show mc confused shows the correct sprite but it doesn't really work as intended. First of all, the sprite lingers on the screen until a scene change and it goes back to not working as soon as the scene changes. So if I call mc confused again I get nothing again.

User avatar
Remix
Eileen-Class Veteran
Posts: 1479
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Image is not showing up?

#4 Post by Remix » Wed Aug 01, 2018 7:17 pm

You want side images, not just sprites...

Read This Page
Frameworks & Scriptlets:

User avatar
LiveTurkey
Regular
Posts: 104
Joined: Tue Dec 27, 2016 10:50 pm
Location: Brooklyn
Contact:

Re: Image is not showing up?

#5 Post by LiveTurkey » Thu Aug 02, 2018 2:07 pm

Remix wrote:
Wed Aug 01, 2018 7:17 pm
You want side images, not just sprites...

Read This Page
I changed it too

Code: Select all

image side mc afraid = "characters/MC/Afraid.png"
image side mc angry = "characters/MC/Angry.png"
image side mc blush = "characters/MC/Blush.png"
image side mc confused = "characters/MC/Confused.png"
image side mc disgusted = "characters/MC/Disgusted.png"
image side mc flirty = "characters/MC/Flirty.png"
image side mc happy = "characters/MC/Happy.png"
image side mc mischievous = "characters/MC/Mischievous.png"
image side mc sad = "characters/MC/Sad.png"
image side mc smile = "characters/MC/Smile.png"
image side mc surprised = "characters/MC/Surprised.png"
but it still isn't working for me.

User avatar
Remix
Eileen-Class Veteran
Posts: 1479
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Image is not showing up?

#6 Post by Remix » Thu Aug 02, 2018 4:27 pm

Try changing the variable name for the character to see if that is causing issues:

define c = Character(("[name]"), color="#fff", image = "mc")

Side images certainly work fine for me.
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: cedr777