How to make animation loop?

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
User avatar
DarkVibeGames
Newbie
Posts: 7
Joined: Tue Jun 21, 2016 3:57 pm
Contact:

How to make animation loop?

#1 Post by DarkVibeGames » Tue Jun 21, 2016 4:04 pm

Hi there, Lemma Soft friends!

I had a quick question for you guys. So, I've animated a sprite using a block of code like this:

Code: Select all

image Person:
    "image_01.png"
    0.025
    "image_02.png"
    0.025
    (etc.)
The code works fine, and the sprite animates like I figured it would. But it only plays the animation once. I need the animation to loop, and I can't figure out a good way to do that because I'm pretty new to RenPy. Anyone have some good advice on the subject?

Thanks in advance!

User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: How to make animation loop?

#2 Post by namastaii » Tue Jun 21, 2016 4:17 pm

I think you just need to add repeat at the end

Code: Select all

image Person:
    "image_01.png"
    0.025
    "image_02.png"
    0.025
    repeat

User avatar
DarkVibeGames
Newbie
Posts: 7
Joined: Tue Jun 21, 2016 3:57 pm
Contact:

Re: How to make animation loop?

#3 Post by DarkVibeGames » Tue Jun 21, 2016 4:35 pm

namastaii wrote:I think you just need to add repeat at the end

Code: Select all

image Person:
    "image_01.png"
    0.025
    "image_02.png"
    0.025
    repeat
LMAO yup that was it. *facedesk*. Thanks haha

Post Reply

Who is online

Users browsing this forum: Google [Bot], nyeowmi