Animated background freezing with transitions

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
tv-ghost
Newbie
Posts: 11
Joined: Mon Jul 23, 2018 3:47 am
Contact:

Animated background freezing with transitions

#1 Post by tv-ghost »

I'm working with Ren'py 7.0.0.196.

Background + sprite code:

Code: Select all

image ani:
        "image_a.png"
        pause 0.2
        "image_b.png"
        pause 0.2
        repeat
image sprite:
        "sprite.png"
I show the background with scene ani.

When I do:
show sprite at left with easeinleft

The background freezes on the frame that appears once the easeinleft stops until you click for the next message or toggle the game menu.
Is this an engine error or is the animation background code not properly written?

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
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: Animated background freezing with transitions

#2 Post by Donmai »

Instead of a transition, try an ATL transform to move your sprite. See some examples here:
viewtopic.php?f=51&t=16604
Your line will be something like

Code: Select all

show sprite at name_of_your_transform, left
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: No registered users