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

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
moogsparfait
Regular
Posts: 53
Joined: Mon Apr 28, 2014 9:26 pm
Completed: Danmaku!! (Card Game)
Projects: The Parasol Festival
Organization: Mystery Parfait
Contact:

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

#1 Post 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.
Last edited by moogsparfait on Sat Dec 12, 2015 9:25 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#2 Post by PyTom »

I'd suggest using the angle and radius properties to set the initial position, rather than xpos and ypos.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
moogsparfait
Regular
Posts: 53
Joined: Mon Apr 28, 2014 9:26 pm
Completed: Danmaku!! (Card Game)
Projects: The Parasol Festival
Organization: Mystery Parfait
Contact:

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

#3 Post 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.


Post Reply

Who is online

Users browsing this forum: Semrush [Bot]