Fireflies particles in RenPy?

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
EasyRhysie
Newbie
Posts: 9
Joined: Sun Feb 05, 2017 3:24 pm
Contact:

Fireflies particles in RenPy?

#1 Post by EasyRhysie »

Hi there again! New question here: I wanted to create a fireflies (or glowing dust) effect for my game, basing on the More realistic snow effect, but the problem is... Well, the particles doesn't fly like they should.
By default, they fly from the top of the screen and down, and it's fine for the snow, BUT I have no idea how to make particles float like the real fireflies or dust that you can see in the sunlight in the morning. Like on this video for example: https://www.youtube.com/watch?v=-EMlyedFgFg or like this https://www.youtube.com/watch?v=_LdcqoY0_ZM and https://www.youtube.com/watch?v=A7ZkZazfvao
So, more natural.
I do not know if you can help, I will be very grateful.

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Fireflies particles in RenPy?

#2 Post by gas »

The Snowblossom function can move things in any direction.

SnowBlossom(d, count=10, border=50, xspeed=(20, 50), yspeed=(100, 200), start=0, fast=False, horizontal=False)

by changing the yspeed values you can go from bottom to top. (.100, -200 in that given case).
https://www.renpy.org/doc/html/sprites. ... nowBlossom

But... In your examples there are parallax effects.
So I suggest you to open the Tutorial game, go to the tutorial_sprites.rpy and see how the parallax starfield was done, copying it and changing values as needed.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Alvsvartr
Newbie
Posts: 21
Joined: Wed Aug 17, 2016 9:31 am
Soundcloud: nebelwand-ua
Location: Ukraine
Contact:

Re: Fireflies particles in RenPy?

#3 Post by Alvsvartr »

So, EasyRhysiem, have you managed to make fireflies flying? If yes, please share the result =)

User avatar
Chrystarin
Newbie
Posts: 1
Joined: Fri Jul 24, 2020 3:05 am
Deviantart: Chrystarin
Github: Chrystarin
itch: chrystarin
Contact:

Re: Fireflies particles in RenPy?

#4 Post by Chrystarin »

This is what I used for a firefly particle effect, I hope it could help you guys out! :)

Code: Select all

init:     
	transform blink:
       		linear 1.0 alpha 0.0
        	linear 1.0 alpha 1.0
        	repeat

	image fireflies= SnowBlossom(At("images/particle.png", blink), border=150, count=6000, start=0.00000000001, fast=False,  yspeed=(-100, -80),  xspeed=(-200,200), horizontal=True)

label:
	scene bg park
	show fireflies
	"There are fireflies here"
	return

Mikasa01
Newbie
Posts: 13
Joined: Sat Jul 11, 2020 1:01 pm
Contact:

Re: Fireflies particles in RenPy?

#5 Post by Mikasa01 »

Chrystarin wrote: Fri Jul 24, 2020 3:10 am This is what I used for a firefly particle effect, I hope it could help you guys out! :)

Code: Select all

init:     
	transform blink:
       		linear 1.0 alpha 0.0
        	linear 1.0 alpha 1.0
        	repeat

	image fireflies= SnowBlossom(At("images/particle.png", blink), border=150, count=6000, start=0.00000000001, fast=False,  yspeed=(-100, -80),  xspeed=(-200,200), horizontal=True)

label:
	scene bg park
	show fireflies
	"There are fireflies here"
	return
Thanks a lot for sharing it! :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], kedta35