Animated background stops animating upon loading a save game

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
fishghost
Newbie
Posts: 17
Joined: Mon Oct 21, 2019 7:22 pm
Contact:

Animated background stops animating upon loading a save game

#1 Post by fishghost » Thu Jun 04, 2020 1:13 pm

We're trying to have animated backgrounds in our game, and are using webm files to accomplish this. It's all working well and good until I tried to load a save game file from the middle of one of these scenes. The animation plays for a second, and then stops looping. Any advice?

Here's the code I'm using for this:

Defined at the start of the game:

image bus_background = Movie(play="images/bus_background.webm", loop=True)

And then when the scene is called:

scene bus_background

User avatar
gas
Miko-Class Veteran
Posts: 838
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Animated background stops animating upon loading a save game

#2 Post by gas » Thu Jun 04, 2020 9:03 pm

Try to use 'show' instead of 'scene', but I dunno, just guess. In the docs it never quote the use as a scene and older releases can't at all.
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

fishghost
Newbie
Posts: 17
Joined: Mon Oct 21, 2019 7:22 pm
Contact:

Re: Animated background stops animating upon loading a save game

#3 Post by fishghost » Fri Jun 05, 2020 8:11 am

Unfortunately running into the same issue with 'show'.

fishghost
Newbie
Posts: 17
Joined: Mon Oct 21, 2019 7:22 pm
Contact:

Re: Animated background stops animating upon loading a save game

#4 Post by fishghost » Fri Jun 05, 2020 5:28 pm

Reconstructing the animation in engine via ATL (instead of loading in a video) fixed the issue.

Post Reply

Who is online

Users browsing this forum: Google [Bot], _ticlock_