Page 1 of 1

Layeredimage animated outfits [solved]

Posted: Fri Mar 13, 2020 3:38 pm
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).

Re: Layeredimage animated outfits

Posted: Fri Mar 13, 2020 7:50 pm
by gas
Yes we can.
Create the image and use it as a layer on the layeredimage.

Re: Layeredimage animated outfits

Posted: Sat Mar 14, 2020 6:25 am
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.

Re: Layeredimage animated outfits

Posted: Mon Mar 16, 2020 5:58 pm
by Exiscoming
Going to give this a small bump.

Re: Layeredimage animated outfits

Posted: Tue Mar 17, 2020 3:17 am
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.

Re: Layeredimage animated outfits

Posted: Tue Mar 17, 2020 7:27 am
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!