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.
Hello! I need some help with this layered image, whenever I call this layered image it only shows the default assets, calling the other group face layers never works
Anastimafilia wrote: ↑Sun May 26, 2024 12:42 pm
Hello! I need some help with this layered image, whenever I call this layered image it only shows the default assets, calling the other group face layers never works
So how do you show the image in the first place including the attributes you wanna show?
Anastimafilia wrote: ↑Mon May 27, 2024 3:14 pm
exactly, that code you just wrote doesn't work
So I tested it with mockup images, it works fine. But the face effects should probably be drawn after the face, if you want them to appear on top of the face.
Can you start the Renpy launcher, hit the "update" button, choose the latest "Renpy nightly fix" and try again? Also make sure the image files you are using are inside the "images" folder and that they have the correct filenames, e.g. "sv_blush1.png"!
thanks for the reply, the reason why face effects are on top of my face layer is because those face effects are all simple alpha layers, notice how it's just a simple blush face effect, it works perfectly with all my other sprites, this one is the only one giving me a headache
file names are also fine, my work around is to call them like this
Anastimafilia wrote: ↑Tue May 28, 2024 1:18 pm
thanks for the reply, the reason why face effects are on top of my face layer is because those face effects are all simple alpha layers, notice how it's just a simple blush face effect, it works perfectly with all my other sprites, this one is the only one giving me a headache
Uhm, yeah that's why I was mentioning it, because in your original code you let the "face_effects" layer underneath the "face" layer, the order inside the layered image matters. What is coming first, is drawn first. So that's why the "blush" should come last.
show svero1
sv "Hello"
sv anguish1 "this summer is so hot!"
and this last example is what's giving me troubles for some reason
I mean if you want that to work, you have to connect the image to the character. I assume you have done that (otherwise it would throw an error anyway):
define e = Character("Eileen", image="svero1")
# The game starts here.
label start:
show svero1
e "I am normal."
e anguish1 blush1 "I should be blushing at the moment."
e tease1 "Teasing..."
return
thanks a lot for your help, you made me realize it was a mistake I made while defining the character and creating the layered group
everything works now perfectly, thanks a lot, mods can close this thread now