Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 18, 2013 2:31 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Feb 29, 2012 6:47 pm 
Eileen-Class Veteran
User avatar

Joined: Sat Jan 26, 2008 5:58 pm
Posts: 1695
Location: Jacob Whitemoore Academy
Completed: http://www.ayusakata.com/vn.html
Projects: Every Sunrise, Oneiro, Backstage Pass
Organization: sakevisual
I have two animated images:

Code:
image nod:
    "nod01.jpg"
    pause 0.1
    "nod02.jpg"
    pause 0.1
    "nod03.jpg"
    pause 0.1
    "nod04.jpg"

image woosh:
    "woosh.jpg"
    xalign 0.0
    linear 1.0 xalign 1.0


And a screen:
Code:
screen littlebuddy:
    if buddynodding:
        add "nod" xalign 0.5 yalign 0.5
    else:
        add "woosh" xalign 0.5 yalign 0.5


Whenever the code is supposed to show "woosh" I see the image move across the screen like it should. Whenever it's supposed to display "nod" it only shows the last frame (nod04.jpg) without any of the others. This only happens in screens. If I write:
Code:
show nod

The animation plays once like it should. Is there a way to get the animation to play in the screen, or should I attempt to find a workaround?

_________________

Image Image Image


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 11:23 pm 
Regular
User avatar

Joined: Thu Apr 16, 2009 9:18 am
Posts: 173
Completed: The Stolen Diamond Ring
Projects: Happy Memories: Azalea Town, Princess Battles
We had this problem too. Looping animations worked fine, but all one-time animations only showed the last frame. It seems the animation "loads" / plays when the screen is displayed, even if it's not actually shown.

The only way I was able to make it work was to put the animations in separate screens and show and hide those on demand. If there's a better solution for this I would also like to hear it!

_________________
Otome Games
Image


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 12:57 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10770
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
In Ren'Py, the clock starts when the screen is shown to screen. How are you changing from woosh to nod?

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 1:30 am 
Eileen-Class Veteran
User avatar

Joined: Sat Jan 26, 2008 5:58 pm
Posts: 1695
Location: Jacob Whitemoore Academy
Completed: http://www.ayusakata.com/vn.html
Projects: Every Sunrise, Oneiro, Backstage Pass
Organization: sakevisual
Ah, I see. It's the same screen, and I'm just changing the booleans.
Code:
$woosh = False
$nod = True

So if I used separate screens for woosh and nod and showed and hid them at appropriate times it would work?

_________________

Image Image Image


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 6:41 am 
Regular
User avatar

Joined: Thu Apr 16, 2009 9:18 am
Posts: 173
Completed: The Stolen Diamond Ring
Projects: Happy Memories: Azalea Town, Princess Battles
I think it should work.

Disclaimer: I haven't tried this in that specific situation - I mostly have it set in imagebuttons, something like:
Code:
hovered Show("animatedeffectscreen", transition=None) unhovered Hide("animatedeffectscreen", transition=None)

_________________
Otome Games
Image


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group