Clockwise rotating fade animation?

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
User avatar
Posts: 264
Joined: Sat Jan 07, 2017 3:09 pm

Clockwise rotating fade animation?

#1 Post by SuperbowserX » Sun Aug 26, 2018 4:28 pm

I'm making a visual novel that pays homage to an old game I love (Cause of Death), and in trying to recreate it's style, I want to recreate the way it handled timed choices. I'm looking for the transforms that can help handle a clockwise animation.

Think of a clock with one big hand. Right now, the clock is pointing at 12, and the whole clock is white. Over the course of 5 seconds, the big hand rotates around the clock clockwise, and any area the clock hand passes is now grey. After a quarter of the time, the upper-right corner is grey. Half the time, the right half is. At the end of it, the whole clock is gray.

For a sample of what I mean, see this: Note the clock at the bottom. It is doing exactly what I want to recreate; the top image (the white) is fading away in a clockwise manner, revealing the image at the bottom.

I have an image of the grey circle and I can easily make a same-sized one of the white circle. What transformations would I use to make it so that the image on top (the white one) fades itself away as it rotates clockwise, gradually revealing the bottom image (the grey circle)? I'm familiar with linear and screen actions but I'm not sure how to make it so that an image fades away in a clockwise direction.

User avatar
Lemma-Class Veteran
Posts: 2731
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor

Re: Clockwise rotating fade animation?

#2 Post by Imperf3kt » Sun Aug 26, 2018 8:15 pm

I'd fade the gray circle in with a wipe, myself.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.


Eileen-Class Veteran
Posts: 1660
Joined: Wed Dec 04, 2013 12:33 pm

Re: Clockwise rotating fade animation?

#3 Post by philat » Sun Aug 26, 2018 9:47 pm

Post Reply

Who is online

Users browsing this forum: No registered users