Animations need to complete, and transition end-to-end.

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
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Animations need to complete, and transition end-to-end.

#1 Post by Steffenator »

Ok,
I have two sprite animations that need to be end to end no matter when I click. In other words, when I click to advance the scene during the first animation, I need that animation to finish, then have the next one follow in directly behind it, play once all the way through, then return to the previous animation.
I have the click-play-return part down, I just can't get them to play all the way through. The following one always interrupts the preceding one exactly when I click.

It's a walk cycle animation that will stay in the left side of the window, and I need my click to trigger the animation change without any skipped frames. Hence the need to complete each animation.

it's one of those image/pause sprite animations...
image...
pause .1
image
pause .1
repeat

I tried that hard=True thing, but I don't really know how to use it, or where it goes. Couldn't find it in the documentation.
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Animations need to complete, and transition end-to-end.

#2 Post by Imperf3kt »

A hard pause is not what you want, but for reference's sake:

Code: Select all

show my_animation
$ renpy.pause (3, hard=True)#3 aecond pause that is unskippable
alice "Wow, I'm walking."
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Steffenator
Regular
Posts: 53
Joined: Fri Feb 17, 2017 11:58 am
Contact:

Re: Animations need to complete, and transition end-to-end.

#3 Post by Steffenator »

Got it, thanks!
There once was a language called Ren'Py
that made all the wannabes cry... with joy.
It gave them the power,
they spent every hour,
to finish a game, or die.


Post Reply

Who is online

Users browsing this forum: Bing [Bot], Vamp-sama