Particles.lua???

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
User avatar
mariosonicgamer55677
Fighter Fly
Fighter Fly
Posts: 72
Joined: Sat Sep 22, 2018 6:17 am
Flair: bruh moment
Current Project: Super Mario And The 10 Golden Elements
Chat Username: Dededegenerate
Contact:

Particles.lua???

Postby mariosonicgamer55677 » Fri Sep 20, 2019 1:29 am

Does anybody know how to get it? That one lua code that gives you rain,snow ect. I've searched everywhere and had no luck finding it. Is it a built in feature in smbx2?

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7490
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Particles.lua???

Postby Enjl » Fri Sep 20, 2019 2:00 am

Yes it is. You can simply load it with local particles = require("particles")

data/scripts/particles has some standard particle systems you can load, too.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
mariosonicgamer55677
Fighter Fly
Fighter Fly
Posts: 72
Joined: Sat Sep 22, 2018 6:17 am
Flair: bruh moment
Current Project: Super Mario And The 10 Golden Elements
Chat Username: Dededegenerate
Contact:

Re: Particles.lua???

Postby mariosonicgamer55677 » Fri Sep 20, 2019 2:21 am

Enjl wrote:
Fri Sep 20, 2019 2:00 am
Yes it is. You can simply load it with local particles = require("particles")

data/scripts/particles has some standard particle systems you can load, too.
Is this how you are supposed do it?

Image

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7490
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Particles.lua???

Postby Enjl » Fri Sep 20, 2019 2:23 am

No.
https://wohlsoft.ru/pgewiki/Particles.lua
Skip the "installation" section.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
mariosonicgamer55677
Fighter Fly
Fighter Fly
Posts: 72
Joined: Sat Sep 22, 2018 6:17 am
Flair: bruh moment
Current Project: Super Mario And The 10 Golden Elements
Chat Username: Dededegenerate
Contact:

Re: Particles.lua???

Postby mariosonicgamer55677 » Fri Sep 20, 2019 2:27 am

Enjl wrote:
Fri Sep 20, 2019 2:23 am
No.
https://wohlsoft.ru/pgewiki/Particles.lua
Skip the "installation" section.
I finally got it to work now thanks.

Added in 6 minutes 47 seconds:
Enjl wrote:
Fri Sep 20, 2019 2:23 am
No.
https://wohlsoft.ru/pgewiki/Particles.lua
Skip the "installation" section.
One more question,Is there any more effects other than rain? The website only told how to do the flame and the rain one. Is there anymore like sandstorms,smoke,snow or fog.

User avatar
Hoeloe
Grinder
Grinder
Posts: 1026
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Current Project: A2XT Episode 2

Re: Particles.lua???

Postby Hoeloe » Fri Sep 20, 2019 9:05 am

Here's a list of all the particle effects that are built into the engine.

Image

You can also make your own using a custom .ini file in your level folder.

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7490
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Particles.lua???

Postby Enjl » Fri Sep 20, 2019 9:48 am

Enjl wrote:
Fri Sep 20, 2019 2:00 am
data/scripts/particles has some standard particle systems you can load, too.
That's where you can find what Hoeloe just posted.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
mariosonicgamer55677
Fighter Fly
Fighter Fly
Posts: 72
Joined: Sat Sep 22, 2018 6:17 am
Flair: bruh moment
Current Project: Super Mario And The 10 Golden Elements
Chat Username: Dededegenerate
Contact:

Re: Particles.lua???

Postby mariosonicgamer55677 » Tue Oct 01, 2019 3:11 am

One more extra question. What if i wanted it to rain in only one section instead of the entire level? How do I do it?

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7490
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Particles.lua???

Postby Enjl » Tue Oct 01, 2019 5:16 am

Only run the draw call after a check for player.section
ImageImageImageImage
ImageImageImageImageImageImage


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest