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
Message
Author
User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Clockwise rotating fade animation?

#1 Post by SuperbowserX »

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: https://i.imgur.com/KgkF04e.gifv 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
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Clockwise rotating fade animation?

#2 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Clockwise rotating fade animation?

#3 Post by philat »


Post Reply

Who is online

Users browsing this forum: Alex, Andredron, mold.FF