Help needed with animations [Solved]

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
shahab96
Veteran
Posts: 228
Joined: Mon May 24, 2010 5:40 am
Location: Lahore, Pakistan
Contact:

Help needed with animations [Solved]

#1 Post by shahab96 » Mon May 30, 2011 10:40 am

Ok this is a complicated problem (at least for me).
What I want to do is basically show these images in order from a list starting from Frame.png to Frame9.png with a 0.5 second delay in between each.

These will actually be the background for a Frame which will contain buttons. I want only the Frame to do the animation and not the buttons. It should pass under them. :? :? :? I want it to look basically like a glass sheet shining under the buttons. Here are the images in order.
Frame.png
Frame.png (466 Bytes) Viewed 484 times
Frame1.png
Frame1
Frame1.png (7.28 KiB) Viewed 484 times
Frame2.png
Frame2
Frame2.png (8.67 KiB) Viewed 484 times
Frame3.png
Frame3
Frame3.png (12.8 KiB) Viewed 484 times
Frame4.png
Frame4
Frame4.png (10.92 KiB) Viewed 484 times
Frame5.png
Frame5
Frame5.png (2.17 KiB) Viewed 484 times
Frame6.png
Frame6
Frame6.png (13.25 KiB) Viewed 484 times
Frame7.png
Frame7
Frame7.png (12.7 KiB) Viewed 484 times
Frame8.png
Frame8
Frame8.png (7.26 KiB) Viewed 484 times
Frame9.png
Frame9
Frame9.png (1.93 KiB) Viewed 484 times
I'm hoping that this is possible using screen language. But if not then I'm fine using normal renpy language as well. But please somebody tell me how to do this.
Last edited by shahab96 on Tue May 31, 2011 1:55 am, edited 1 time in total.
The true measure of a man is what he does with his power.

User avatar
Alex
Lemma-Class Veteran
Posts: 2565
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Help needed with animations

#2 Post by Alex » Mon May 30, 2011 12:22 pm

You can make an animated image using ATL and then use it as background to your frame

Code: Select all

init:
    image glass_bg:
        "Frame.png"
        0.1
        "Frame1.png"
        0.1
        "Frame2.png"
        0.1
        "Frame3.png"
        0.1
        "Frame4.png"
        0.1
        "Frame5.png"
        0.1
        "Frame6.png"
        0.1
        "Frame7.png"
        0.1
        "Frame8.png"
        0.1
        "Frame9.png"
        1.5
        repeat
screen my_scr:
    frame:
        background Frame("glass_bg", 10, 10)
        xpos  500
        xpadding 100
        ypadding 20
        #xalign 0.5
        #yalign 0.5
        textbutton "Test" action Return(True)
label start:
    show screen my_scr
    "Well..."

User avatar
shahab96
Veteran
Posts: 228
Joined: Mon May 24, 2010 5:40 am
Location: Lahore, Pakistan
Contact:

Re: Help needed with animations

#3 Post by shahab96 » Mon May 30, 2011 12:36 pm

wow.....its that easy?????

thanks for that a lot Alex
:D
The true measure of a man is what he does with his power.

Post Reply

Who is online

Users browsing this forum: No registered users