Circular motion not moving images

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
KumaTohr
Newbie
Posts: 2
Joined: Wed Jul 18, 2018 1:26 pm
Contact:

Circular motion not moving images

#1 Post by KumaTohr » 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?

User avatar
Per K Grok
Regular
Posts: 161
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls
Projects: Defenders of Adacan
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: Circular motion not moving images

#2 Post by Per K Grok » Wed Jul 18, 2018 3:47 pm

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"
    
    
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

KumaTohr
Newbie
Posts: 2
Joined: Wed Jul 18, 2018 1:26 pm
Contact:

Re: Circular motion not moving images

#3 Post by KumaTohr » Wed Jul 18, 2018 5:21 pm

It worked! Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users