The animation doesn't work

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
luciariccitelli
Newbie
Posts: 5
Joined: Mon Oct 24, 2016 8:15 pm
Contact:

The animation doesn't work

#1 Post by luciariccitelli » Mon Sep 07, 2020 12:24 pm

Hi :D. I'm trying to do a simple animation make the image bounce, but it doesn't work, the image is visible but the animation doesn't start at any point. Any idea?

this is in script.rpy

Code: Select all

show director at directorSalto
This is in another script caled animation.rpy

Code: Select all

transform directorSalto:
    xalign 0.5 yalign 0.5
    linear 1.0 yalign 1.0
    linear 2.0 yalign 0.5
    repeat

User avatar
RicharDann
Veteran
Posts: 239
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: The animation doesn't work

#2 Post by RicharDann » Mon Sep 07, 2020 1:21 pm

Try using yoffset instead of yalign for the linear statements.

Code: Select all

transform directorSalto:
    xalign 0.5 yalign 0.5
    linear 1.0 yoffset 100 #adjust the number of pixels to your needs
    linear 2.0 yoffset 0
    repeat
The most important words a man can say are, “I will do better.”

luciariccitelli
Newbie
Posts: 5
Joined: Mon Oct 24, 2016 8:15 pm
Contact:

Re: The animation doesn't work

#3 Post by luciariccitelli » Wed Sep 09, 2020 1:43 pm

Thank :) that worked

Post Reply

Who is online

Users browsing this forum: Bing [Bot], djinius, sousarja