Adding alpha to 'realistic snow' effect

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
KiloTango
Regular
Posts: 138
Joined: Thu Mar 06, 2014 9:12 am
Projects: The Lighthouse (NaNoReNo14)
Organization: Starship ★ Palindrome
Location: UK
Contact:

Adding alpha to 'realistic snow' effect

#1 Post by KiloTango »

I've made a hack of the snow effect found in the cook book here http://renpy.org/wiki/renpy/doc/cookboo ... now_effect that sends the particles up instead of down, to use as a magic effect, but I was wondering if there was a way I could use additive blending with it to make it work even better as a particle effect.

Any ideas?
ImageImageImage

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

Re: Adding alpha to 'realistic snow' effect

#2 Post by Asceai »

i dunno, try changing

Code: Select all

rv.append( im.FactorScale( im.Alpha(image, p), p ) )
to

Code: Select all

rv.append( Transform(im.FactorScale( im.Alpha(image, p), p ), additive=1.0) )

User avatar
KiloTango
Regular
Posts: 138
Joined: Thu Mar 06, 2014 9:12 am
Projects: The Lighthouse (NaNoReNo14)
Organization: Starship ★ Palindrome
Location: UK
Contact:

Re: Adding alpha to 'realistic snow' effect

#3 Post by KiloTango »

You're a star, that works perfectly! :)
ImageImageImage

Post Reply

Who is online

Users browsing this forum: No registered users