Adding dissolve to particles 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
Alvsvartr
Newbie
Posts: 21
Joined: Wed Aug 17, 2016 9:31 am
Soundcloud: nebelwand-ua
Location: Ukraine
Contact:

Adding dissolve to particles animation

#1 Post by Alvsvartr »

Dear friends,

Here is a good piece of code but the animation looks not smooth. is it possible to add here dissolve or other transition between the images or something akin.

Code: Select all

transform withAdd:
        additive 1.0

image particle newDownBright = SnowBlossom(At(Animation("images/blue-particle-circle.png", 0.15, "images/blank.png, 0.05),withAdd), border=150, count=6000,start=0.00000000001, fast=False, yspeed=(-100, -80), xspeed=(-3000,3000), horizontal=True)

User avatar
SONTSE
Regular
Posts: 96
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 11 VN's so far
Discord: jkx0282_10798
Contact:

Re: Adding dissolve to particles animation

#2 Post by SONTSE »

Code: Select all

image sprite_animation:
    'sprite1' with Dissolve(.15,alpha=True)
    .15
    'sprite2' with Dissolve(.15,alpha=True)
    .15
    repeat

image sprite_show = SnowBlossom('sprite_animation')

where 'sprite1' and 'sprite2' is any image file with corresponding name and supported extension (.jpg, .png) in 'images' directory, so renpy autodefines it.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot], snotwurm