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.
moogsparfait
Regular
Posts: 53 Joined: Mon Apr 28, 2014 9:26 pm
Completed: Danmaku!! (Card Game)
Projects: The Parasol Festival
Organization: Mystery Parfait
Contact:
#1
Post
by moogsparfait » Sat Dec 12, 2015 6:33 pm
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:
I've managed to get this far:
VIDEO
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.
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:
#2
Post
by PyTom » Sat Dec 12, 2015 8:22 pm
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
moogsparfait
Regular
Posts: 53 Joined: Mon Apr 28, 2014 9:26 pm
Completed: Danmaku!! (Card Game)
Projects: The Parasol Festival
Organization: Mystery Parfait
Contact:
#3
Post
by moogsparfait » Sat Dec 12, 2015 9:23 pm
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.
VIDEO
Users browsing this forum: Semrush [Bot]