How does ATL Circular Motion works?

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
Kia
Miko-Class Veteran
Posts: 920
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

How does ATL Circular Motion works?

#1 Post by Kia » Tue Apr 28, 2020 7:46 am

I have a rotation that have either 0, 90, 180 or 270 rotation:

Code: Select all

transform pipes_rotate(r):
    rotate_pad False
    ease .2 rotate r
when it circles back to 0 it rotates backwards to 0, I'm wondering if this: https://www.renpy.org/doc/html/atl.html#circular-motion
can help me achieve a full rotation instead?
It sounds like the solution I'm looking for, but with no example, I have no Idea if it works for my case and how.

User avatar
Milkymalk
Miko-Class Veteran
Posts: 747
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: How does ATL Circular Motion works?

#2 Post by Milkymalk » Tue Apr 28, 2020 8:08 am

A rotation of 0 is a rotation of 0. Its position is the same as 360, but it IS a full circle behind 360, so of course it rotates back. If you want to rotate from 270 forward to 0, you need to rotate to 360.

Circular motion is just that, it moves the displayable in a circular motion around a point, but without rotating it. Think of a cabin on a ferris wheel.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

M-77
Regular
Posts: 56
Joined: Tue Sep 04, 2018 7:58 am
Contact:

Re: How does ATL Circular Motion works?

#3 Post by M-77 » Tue May 05, 2020 4:01 pm

Hello "Kia". Did you find a way? I use this code to (in my case fist made it bigger and fit on screen at center) rotate a pic of a whirl. Non stop, but for 4 seconds in my case:
show warp001 at center:
zoom 2.0
xalign 0.5
yalign 0.5
xanchor 0.5 yanchor 0.5
rotate 0
linear 4.0 rotate 360
repeat

The "warp001" is the pic I let rotate. Tell us what worked for you.

User avatar
Kia
Miko-Class Veteran
Posts: 920
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Skype: KiaAzad
Contact:

Re: How does ATL Circular Motion works?

#4 Post by Kia » Tue May 05, 2020 4:27 pm

well, I haven't found an easy fix, but I'm a programmer, I'm sure I can make a function or something to calculate the value

Post Reply

Who is online

Users browsing this forum: Google [Bot]