How can simplify the withdrawal of the character?

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
Otto61
Newbie
Posts: 7
Joined: Thu Mar 07, 2019 8:06 am
Contact:

How can simplify the withdrawal of the character?

#1 Post by Otto61 »

I learned how to collect a character using LiveComposite.
If I write show sakura, then the character is completely going.
I can change emotions and pose with

Code: Select all

$ sface = 'a' 
show sakura
So, what do I want? How can I make it so that I can write it in one line? for example

Code: Select all

show sakura sface a

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: How can simplify the withdrawal of the character?

#2 Post by wyverngem »

LiveComposite isn't the way to go anymore. It's been updated and much easier to use layeredimages and just call the attributes. Here's the full documentation https://www.renpy.org/doc/html/layeredi ... yeredimage

Look over that. You would have had to use a ConditionSwitch in the past, but justused layeredimages. It renders faster and is easier to setup.

Post Reply

Who is online

Users browsing this forum: Google [Bot]