Page 1 of 1

Image is not showing up?

Posted: Wed Aug 01, 2018 12:06 pm
by LiveTurkey
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?

Re: Image is not showing up?

Posted: Wed Aug 01, 2018 1:09 pm
by Per K Grok
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."

Re: Image is not showing up?

Posted: Wed Aug 01, 2018 2:45 pm
by LiveTurkey
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.

Re: Image is not showing up?

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

Read This Page

Re: Image is not showing up?

Posted: Thu Aug 02, 2018 2:07 pm
by LiveTurkey
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.

Re: Image is not showing up?

Posted: Thu Aug 02, 2018 4:27 pm
by Remix
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.