How to make anim.Filmstrip play only once [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
User avatar
RicharDann
Veteran
Posts: 284
Joined: Thu Aug 31, 2017 11:47 am
Contact:

How to make anim.Filmstrip play only once [SOLVED]

#1 Post by RicharDann » Thu Aug 31, 2017 11:58 am

Hello there, I'm not exactly new to Ren'Py since I've been using it for a while now, I've been lurking in this forum for some time and I've found some of the examples here, if a little dated, quite helpful anyway.

So on to my question: as I started to dig into ATL and animation I've run into some examples in the tutorial that make use of a function call 'anim.Filmstrip', wich is used to make an animation out of a spritesheet, I've found it quite easy to use, but there is a problem. This function makes it so the animation plays repeatedly until it's dismissed, and I wanted to know if there is a way to have it play only an x amount of times and then dissapear, maybe a parameter or something, but I can't seem to find anything about it on the Documentation.

Is anim.Filmstrip deprecated somehow that it doesn't appear on the Docs, if it is is there a better alternative to use spritesheets?
Last edited by RicharDann on Fri Sep 01, 2017 10:11 am, edited 1 time in total.
The most important step is always the next one.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to make anim.Filmstrip play only once

#2 Post by Donmai » Thu Aug 31, 2017 3:09 pm

People here will must likely be telling you to quit using filmstrip and go for ATL (see here: viewtopic.php?f=8&t=42965) :) .
But the old filmstrip documentation says there's a "Loop" parameter you can use.
https://www.renpy.org/wiki/renpy/doc/re ... .Filmstrip
Maybe something like

Code: Select all

    image blossom = anim.Filmstrip("sakura.png", (20, 20), (2, 1), .30, False, xpos=760, ypos=560, xanchor=0, yanchor=0)
Should work.
If not... well, go for ATL :lol: .
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
RicharDann
Veteran
Posts: 284
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: How to make anim.Filmstrip play only once

#3 Post by RicharDann » Thu Aug 31, 2017 9:26 pm

Thank you very much for your reply, I think I will go for ATL after all, I've been doing a bit of testing and I think ATL is far more powerful and will allow more precise customization, so yeah. Still good to know about filmstrip having that option, thanks.
The most important step is always the next one.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]