Hi,
There's an animated sprite I made with two separate animations, one that starts the animation and the other loops after. I've had two solutions (neither of which I know how to do and would appreciate the help):
- Make two separate image labels and tell renpy to play one after another (I tried show-pause-hide, but that somehow skipped a few frames.)
- make one label and somehow tell it to repeat between specific frames (which I don't know how)
I don't know an effective way to do either and I'm not sure if there's a better way, would anyone know? thanks.
How to make a loopable animation after a particular frame?
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.
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.
- Ocelot
- Lemma-Class Veteran
- Posts: 2402
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: How to make a loopable animation after a particular fram
You want a block statement: https://www.renpy.org/doc/html/atl.html#block-statement
something like:It will show first two frames and then repeat frames 3 and 4.
something like:
Code: Select all
image animation:
'frame 1.png'
0.2
'frame 2.png'
block:
0.2
'frame 3.png'
0.2
'frame 4.png'
repeat
< < insert Rick Cook quote here > >
- asatiir
- Regular
- Posts: 86
- Joined: Tue Oct 01, 2013 6:04 pm
- Completed: Within the Walls (Twine)
- Projects: Roses Will Rise
- Organization: Asatiir's Tales
- Skype: asatiir
- itch: asatiir
- Location: Dubai, UAE
- Contact:
Re: How to make a loopable animation after a particular fram
This worked! thanks a lot!Ocelot wrote:You want a block statement: https://www.renpy.org/doc/html/atl.html#block-statement
something like:It will show first two frames and then repeat frames 3 and 4.Code: Select all
image animation: 'frame 1.png' 0.2 'frame 2.png' block: 0.2 'frame 3.png' 0.2 'frame 4.png' repeat
edit: okay that solved on problem and brought another, now when I try to move the animation it starts the nimation from the very beginning. Is there a way to leave it to loop the block when moving?
Who is online
Users browsing this forum: Bing [Bot]