Page 1 of 1

[Solved] How do I make a Spiral Burst Pattern in ATL?

Posted: Sat Dec 12, 2015 6:33 pm
by moogsparfait
Renpy 6.99.4.467

I'd like help with the polar coordinate functions of ATL. Specifically I'd like to make a spiral burst pattern like this:

Image

I've managed to get this far:



Using this code:

Code: Select all

    show cloud:
        around (.5,.5)
        xpos 0.5 ypos 0.5 xanchor 0.5 yanchor 0.5
        linear 2 clockwise circles .25 ypos 0.75
        repeat 
    
    show cloud2:
        around (.5,.5)
        xpos 0.5 ypos 0.5 xanchor 0.5 yanchor 0.5
        linear 2 clockwise circles .25 xpos 0.25
        repeat 
        
    show cloud3:
        around (.5,.5)
        xpos 0.5 ypos 0.5 xanchor 0.5 yanchor 0.5 
        linear 2 clockwise circles .25 ypos 0.25
        repeat 
        
    show cloud4:
        around (.5,.5)
        xpos 0.5 ypos 0.5 xanchor 0.5 yanchor 0.5 
        linear 2 clockwise circles .25 xpos 0.75
        repeat 
Notice that the clouds appear to travel different distances, I would like them to all travel the same distance.

I think I need to somehow set the initial angle of the circles, but I'm not sure how to do that.

Re: How do I make a Spiral Burst Pattern in ATL?

Posted: Sat Dec 12, 2015 8:22 pm
by PyTom
I'd suggest using the angle and radius properties to set the initial position, rather than xpos and ypos.

Re: How do I make a Spiral Burst Pattern in ATL?

Posted: Sat Dec 12, 2015 9:23 pm
by moogsparfait
Thanks for your help, Tom. When I set the radius to 0 it doesn't actually set it, but setting it to something tiny like 0.01 works.