Cannot show LayeredImage side image alone

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
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Cannot show LayeredImage side image alone

#1 Post by ArizaLuca »

What I am trying to do is I have a LayeredImage character that is only meant to be a side character. They do NOT show up onscreen. However, I don't know how to code that into a game without the actual sprite (the LayeredImage that the LayeredImage proxy for the side image uses) also showing up.

Does anyone know how to fix this?

Thank you.

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Cannot show LayeredImage side image alone

#2 Post by wyverngem »

You can do this two ways, you can either make a new layeredimage with the pose as side:

Code: Select all

layeredimage side logan:
    always "logan_base"
    group pose auto:
        attribute base default
    group face auto:
        attribute content default
However, you have to name your files to get the images as "side_" to find any of the groups and attributes.

OR You can use what you've already written and do a Proxy. Like this:

Code: Select all

image side logan = LayeredImageProxy("logan")
layeredimage logan:
    always "logan_base"
    group pose auto:
        attribute base default
    group face auto:
        attribute content default

ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: Cannot show LayeredImage side image alone

#3 Post by ArizaLuca »

The issue is I cannot change expressions on the sprite; I used the second method but there is no way to display expression changes without showing the actual sprite.

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Cannot show LayeredImage side image alone

#4 Post by wyverngem »

Odd you added the image tag to his defined character right?

Code: Select all

define l = Character("Logan", image="logan")

ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: Cannot show LayeredImage side image alone

#5 Post by ArizaLuca »

Yes; but to show any expression changes you have to say 'show', which doesn't work. But I think if I just use ConditionSwitch it should be fine.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]