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.
Cannot show LayeredImage side image alone
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.
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.
-
- 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:
- 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
You can do this two ways, you can either make a new layeredimage with the pose as side:
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
layeredimage side logan:
always "logan_base"
group pose auto:
attribute base default
group face auto:
attribute content default
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
-
- 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
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.
- 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
Odd you added the image tag to his defined character right?
Code: Select all
define l = Character("Logan", image="logan")
-
- 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
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.
Who is online
Users browsing this forum: Bing [Bot]