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.
Exiscoming
Regular
Posts: 132 Joined: Tue Apr 29, 2014 5:37 pm
Contact:
#1
Post
by Exiscoming » Fri Mar 13, 2020 3:38 pm
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.
gas
Miko-Class Veteran
Posts: 842 Joined: Mon Jan 26, 2009 7:21 pm
Contact:
#2
Post
by gas » Fri Mar 13, 2020 7:50 pm
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:
#3
Post
by Exiscoming » Sat Mar 14, 2020 6:25 am
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:
#4
Post
by Exiscoming » Mon Mar 16, 2020 5:58 pm
Going to give this a small bump.
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:
#5
Post
by shin.e.d » 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.
Exiscoming
Regular
Posts: 132 Joined: Tue Apr 29, 2014 5:37 pm
Contact:
#6
Post
by Exiscoming » Tue Mar 17, 2020 7:27 am
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!
Users browsing this forum: No registered users