Live Composite help

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
Plotbunny
Newbie
Posts: 2
Joined: Tue Mar 30, 2021 4:11 pm
Contact:

Live Composite help

#1 Post by Plotbunny »

Hey everyone,

This is my first time trying to make a live composite model but I'm running into a snag and I can't seem to figure out where I'm going wrong.

Here is my composite code:

image novella basic = Composite(
(1280,720),
(0,0), "/images/characters/novellabody",
(0,0), "/images/characters/novellaarmsresting",
(0,0), "/images/characters/novellaclothesresting",
(0,0), "/images/characters/novellanecklace",
(0,0), "novella eyes blink",
(0,0), "/images/characters/novellamouthclosed",
(0,0), "/images/characters/novellaeyebrow",
(0,0), "/images/characters/novellaglasses",
(0,0), "/images/characters/novellahair",
)

and this is where all my images are being kept:
C:\Users\Plotbunny\Desktop\Visual Novels\Novella Live Introduction\game\images\characters

and this is what it looks like when I am trying to play the game:
https://ibb.co/8D2w2PD

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Live Composite help

#2 Post by Remix »

remove the leading / from the paths (and add the extension where applicable)

(0,0), "images/characters/novellamouthclosed.png",
Frameworks & Scriptlets:

Plotbunny
Newbie
Posts: 2
Joined: Tue Mar 30, 2021 4:11 pm
Contact:

Re: Live Composite help

#3 Post by Plotbunny »

Remix wrote: Tue Mar 30, 2021 5:43 pm remove the leading / from the paths (and add the extension where applicable)

(0,0), "images/characters/novellamouthclosed.png",
Thank you so much! This worked perfectly -
However, do you happen to know how to scale the live composite? She's a monster on the screen now and I need to scale her down dramatically but I'd hate to have to go through every layer and resize them. Is there a code work around I could use?

uncoded
Regular
Posts: 27
Joined: Fri Apr 09, 2021 10:29 am
Contact:

Re: Live Composite help

#4 Post by uncoded »

Plotbunny wrote: Wed Mar 31, 2021 1:04 pmHowever, do you happen to know how to scale the live composite? She's a monster on the screen now and I need to scale her down dramatically but I'd hate to have to go through every layer and resize them. Is there a code work around I could use?
hi,
The code you provided declares your Composite image name as novella basic.
You can resize your image when you add it to your screen, like this :

Code: Select all

add "novella basic":
        zoom 0.25
This will make the image 25% or the original size. You might have to reposition it.

You can maybe use im.Scale, too, but I'm not sure if it works well with composites.
🐾

Post Reply

Who is online

Users browsing this forum: Google [Bot]