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.
Fireflies particles in RenPy?
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.
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.
- EasyRhysie
- Newbie
- Posts: 9
- Joined: Sun Feb 05, 2017 3:24 pm
- Contact:
Re: Fireflies particles in RenPy?
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.
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
10 ? "RENPY"
20 GOTO 10
RUN
-
- Newbie
- Posts: 21
- Joined: Wed Aug 17, 2016 9:31 am
- Soundcloud: nebelwand-ua
- Location: Ukraine
- Contact:
Re: Fireflies particles in RenPy?
So, EasyRhysiem, have you managed to make fireflies flying? If yes, please share the result =)
- Chrystarin
- Newbie
- Posts: 1
- Joined: Fri Jul 24, 2020 3:05 am
- Deviantart: Chrystarin
- Github: Chrystarin
- itch: chrystarin
- Contact:
Re: Fireflies particles in RenPy?
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
Re: Fireflies particles in RenPy?
Thanks a lot for sharing it!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
Who is online
Users browsing this forum: Belgerum, Bing [Bot]