Image circular motion

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
StarMasayume
Regular
Posts: 50
Joined: Wed Jun 06, 2012 11:03 pm
Location: Florida
Contact:

Image circular motion

#1 Post by StarMasayume »

I know this should be super easy but I'm having trouble figuring out the right code from the documentation. I have an image of a bee I want to fly in a small circle.

The closest I've gotten it to animate is the below, but it makes a huge circle area and goes off screen 75% of it. What should I do if I want it to just circle around a very small area?

Code: Select all

    show bee:
        xalign 0.4 yalign 0.1
        yalign 0.4
        linear 4.0 clockwise circles 1
        repeat
Thanks for any help or suggestions. :)

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Image circular motion

#2 Post by Asceai »

Use around to set a pivot point. (e.g. at 0.5, 0.5)

StarMasayume
Regular
Posts: 50
Joined: Wed Jun 06, 2012 11:03 pm
Location: Florida
Contact:

Re: Image circular motion

#3 Post by StarMasayume »

Thanks so much! I got it to work :)

Post Reply

Who is online

Users browsing this forum: Kocker