Page 1 of 1

Circular motion not moving images

Posted: Wed Jul 18, 2018 1:40 pm
by KumaTohr
Hi, complete newbie here. I'm trying to get an image to perform circular motion around a certain point, but so far I haven't been able to recreate anything remotely circular. Even trying to copy the circular motion from the Ren'Py online documentation only leads to the image changing its xalign and yalign to 0 with absolutely no interpolation. Granted, I don't have the best code so I'm guessing I'm doing something wrong, I just don't know what. Here's my code:

Code: Select all

image select2:
    "select.png"
    test3
    
transform test3:
    xalign 0.5 yalign 0.5
    linear 2.0 yalign 0.0 clockwise circles 3
    
label Test2:
    show select2 onlayer overlay
    "This is a test"
How can I fix this code so that the image can move clockwise?

Re: Circular motion not moving images

Posted: Wed Jul 18, 2018 3:47 pm
by Per K Grok
KumaTohr wrote: Wed Jul 18, 2018 1:40 pm Hi, complete newbie here. I'm trying to get an image to perform circular motion around a certain point, but so far I haven't been able to recreate anything remotely circular. Even trying to copy the circular motion from the Ren'Py online documentation only leads to the image changing its xalign and yalign to 0 with absolutely no interpolation. Granted, I don't have the best code so I'm guessing I'm doing something wrong, I just don't know what. Here's my code:

Code: Select all

image select2:
    "select.png"
    test3
    
transform test3:
    xalign 0.5 yalign 0.5
    linear 2.0 yalign 0.0 clockwise circles 3
    
label Test2:
    show select2 onlayer overlay
    "This is a test"
How can I fix this code so that the image can move clockwise?
try this

Code: Select all

image select2 = "select.png"
    
transform test3:
    xalign 0.5 yalign 0.5
    linear 2.0 yalign 0.0 clockwise circles 3
    
label Test2:
    show select2 at test3
    "This is a test"
    
    

Re: Circular motion not moving images

Posted: Wed Jul 18, 2018 5:21 pm
by KumaTohr
It worked! Thank you very much!