Pause after showing animations

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
inajke
Newbie
Posts: 24
Joined: Wed Mar 28, 2018 12:07 pm
Contact:

Pause after showing animations

#1 Post by inajke »

Hey guys! Sorry for my english firstable.

I have an animation I want to show 120 frames total it's size is 400x659 (so not really big), but ren'py is kinda lagging for 2 seconds when loading the image, is there a way to soften the loading and make it so the player can still read the text when animation is showing? I've tried reducing the size of every image, but it's already about 180kb and It's png so I can't reduce it further :(.

My code is:
for the image
image animationhim:
"himan/himanka000.png"
0.02
...
"himan/himanka119.png"
repeat
for the animation
sam "text"
show animationlek at center with dissolve
extend "\ntext"
...
hide animationlek with dissolve

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Pause after showing animations

#2 Post by isobellesophia »

You can at least copy this kind of style..

Code: Select all

image eileen animated: 
"eileen_happy.png" 
pause 1.0 
"eileen_vhappy.png" 
pause 1.0 
repeat
As it seen here in the documentation

https://www.renpy.org/doc/html/atl.html ... -atl-block
I am a friendly user, please respect and have a good day.


Image

Image


inajke
Newbie
Posts: 24
Joined: Wed Mar 28, 2018 12:07 pm
Contact:

Re: Pause after showing animations

#3 Post by inajke »

Because of my animation is 120 frames it should be really soft and without pausing for 1 second in between :(

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Pause after showing animations

#4 Post by Per K Grok »

inajke wrote: Wed Nov 27, 2019 11:05 am Because of my animation is 120 frames it should be really soft and without pausing for 1 second in between :(
Maybe you should consider making your images into a video and play that?

inajke
Newbie
Posts: 24
Joined: Wed Mar 28, 2018 12:07 pm
Contact:

Re: Pause after showing animations

#5 Post by inajke »

that's really nice idea, I'll try that, and see how it goes. Thank you very much.

inajke
Newbie
Posts: 24
Joined: Wed Mar 28, 2018 12:07 pm
Contact:

Re: Pause after showing animations

#6 Post by inajke »

The problem is not solved yet. My animations are in PNG and without any background.

User avatar
Palas
Newbie
Posts: 15
Joined: Thu Feb 14, 2013 3:19 pm
Soundcloud: palasvuash
itch: pequigames
Location: Brazil
Contact:

Re: Pause after showing animations

#7 Post by Palas »

I reckon the problem is that you're using "with dissolve", which stops everything the game is doing to show the image. You might be better off getting rid of it.

I have seen threads with a similar problem. This one could help.

inajke
Newbie
Posts: 24
Joined: Wed Mar 28, 2018 12:07 pm
Contact:

Re: Pause after showing animations

#8 Post by inajke »

@Palas, hey, thank you very much. It definitely help a lot, there is still a little freeze, but seems ok!

Thank you very much again, sorry for my english.

Post Reply

Who is online

Users browsing this forum: Google [Bot]