Layeredimage animated outfits [solved]

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
Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Layeredimage animated outfits [solved]

#1 Post by Exiscoming »

The idea is to add an outfit to my game that's semi animated. I'd like these music beats graphics to show up on the outfit, however I'm not sure how to do this.
https://imgur.com/MmBIkrY
Is it possible to add animated images to a layeredimage?

I know you can do this to a regular image:

Code: Select all

image testOutfit:
    "testShirtA.png"
    pause 1.0
    "testShirtB.png"
    pause 1.0
    repeat
But is there a way to also do it inside a layeredimage (or call testOutfit into a layeredimage).
Last edited by Exiscoming on Tue Mar 17, 2020 7:33 am, edited 1 time in total.

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Layeredimage animated outfits

#2 Post by gas »

Yes we can.
Create the image and use it as a layer on the layeredimage.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Re: Layeredimage animated outfits

#3 Post by Exiscoming »

Hey gas,

Thanks for the reply! Can you give me an example of how to do this? I tried:

Code: Select all

layeredimage character:
    if outfit == 1:
        testOutfit
and

Code: Select all

layeredimage character:
    if outfit == 1:
        image testOutfit
But they just give error reports.

Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Re: Layeredimage animated outfits

#4 Post by Exiscoming »

Going to give this a small bump.

User avatar
shin.e.d
Newbie
Posts: 22
Joined: Sat Jan 10, 2015 10:50 am
Projects: Data Lion and an unnamed bxb game with dinosaurs!
Contact:

Re: Layeredimage animated outfits

#5 Post by shin.e.d »

You can put names of images you defined in the script into a "string" like this:

Code: Select all

layeredimage character:
    if outfit == 1:
        "testOutfit"
And the string "testOutfit" refers to the image that you defined with animations.

Exiscoming
Regular
Posts: 132
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Re: Layeredimage animated outfits

#6 Post by Exiscoming »

shin.e.d wrote: Tue Mar 17, 2020 3:17 am You can put names of images you defined in the script into a "string" like this:

Code: Select all

layeredimage character:
    if outfit == 1:
        "testOutfit"
And the string "testOutfit" refers to the image that you defined with animations.
Yes! Works, thank you!

Post Reply

Who is online

Users browsing this forum: No registered users