Animated dust particles in Ren'Py? (SOLVED)

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
omranpanda
Newbie
Posts: 15
Joined: Tue Nov 03, 2020 4:29 pm
Contact:

Animated dust particles in Ren'Py? (SOLVED)

#1 Post by omranpanda »

Does anyone know how to make animated dust particles in renpy? I already have the image that I will use for the particle but I don't know how to make them animated in renpy.

Something similar to this: https://youtu.be/0bkw5wDoyyw

Sorry if this seems like a stupid question.
Last edited by omranpanda on Sat Nov 14, 2020 10:31 am, edited 1 time in total.

User avatar
_ticlock_
Miko-Class Veteran
Posts: 910
Joined: Mon Oct 26, 2020 5:41 pm
Contact:

Re: Animated dust particles in Ren'Py?

#2 Post by _ticlock_ »

Hi, omranpanda,

1) One option is to make a movie and use it as a background. Check this documentation link:
https://www.renpy.org/doc/html/movie.html

2) For more or less simple animation you can use animation and transformation. Check the following links:
https://www.renpy.org/doc/html/atl.html
viewtopic.php?t=16604

For the second option, it might be a good idea to use an image with several dust particles and apply some parallel transforms:

Code: Select all

transform move_particle_set:
        parallel:
           ... # some transformation code
           repeat
        parallel:    
           ... # some transformation code
           repeat
       parallel:    
           ... # some transformation code
           repeat
However, I wouldn't recommend using a lot of independently moving particles with animation and transformation due to unreasonable load for the processor.

omranpanda
Newbie
Posts: 15
Joined: Tue Nov 03, 2020 4:29 pm
Contact:

Re: Animated dust particles in Ren'Py?

#3 Post by omranpanda »

_ticlock_ wrote: Tue Nov 10, 2020 6:40 pm Hi, omranpanda,

1) One option is to make a movie and use it as a background. Check this documentation link:
https://www.renpy.org/doc/html/movie.html

2) For more or less simple animation you can use animation and transformation. Check the following links:
https://www.renpy.org/doc/html/atl.html
viewtopic.php?t=16604

For the second option, it might be a good idea to use an image with several dust particles and apply some parallel transforms:

Code: Select all

transform move_particle_set:
        parallel:
           ... # some transformation code
           repeat
        parallel:    
           ... # some transformation code
           repeat
       parallel:    
           ... # some transformation code
           repeat
However, I wouldn't recommend using a lot of independently moving particles with animation and transformation due to unreasonable load for the processor.
Oh ok thanks!

Dr_arell
Regular
Posts: 70
Joined: Sun Feb 23, 2020 11:24 pm
Deviantart: DarellArt
Contact:

Re: Animated dust particles in Ren'Py?

#4 Post by Dr_arell »

hi, i know this will not be very useful but a while ago i saw something similar to what you are asking on a post here in lemmasoft, i think they were like 2 or 3 lines of code used to emulate snow falling, unfortunately i deleted the project containing that code but if you really want it, just letting you know theres is something like that.

dont quote me on this but this might be the one im talking about
viewtopic.php?f=8&t=58442&p=526841&hilit=snow#p526841

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Animated dust particles in Ren'Py?

#5 Post by Donmai »

you can try this recipe from the Ren'Py cookbook section:
viewtopic.php?f=51&t=24762
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Dr_arell
Regular
Posts: 70
Joined: Sun Feb 23, 2020 11:24 pm
Deviantart: DarellArt
Contact:

Re: Animated dust particles in Ren'Py?

#6 Post by Dr_arell »

yes thats what i was talking about, donmai just posted it

omranpanda
Newbie
Posts: 15
Joined: Tue Nov 03, 2020 4:29 pm
Contact:

Re: Animated dust particles in Ren'Py?

#7 Post by omranpanda »

Donmai wrote: Fri Nov 13, 2020 2:11 pm you can try this recipe from the Ren'Py cookbook section:
viewtopic.php?f=51&t=24762

This seems to work best for me, thanks!

Post Reply

Who is online

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