sectTrans.lua: Screen wide fade effects when section-switch

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

JustOneMGuy
Spiny
Spiny
Posts: 29
Joined: Sun Jan 26, 2020 1:33 pm

sectTrans.lua: Screen wide fade effects when section-switch

Postby JustOneMGuy » Mon Jan 27, 2020 1:40 pm

Hi,

I made a lua script file that adds cross-fade effects when switching sections. Also adds a fade-from-black effect when starting a level.
Spoiler: show
Image
Download: https://drive.google.com/file/d/1cSS4O- ... sp=sharing

Instructions for use:
Load it in your lunaworld.lua/luna.lua/lunadll.lua file using this:

Code: Select all

API.load("sectTrans")
No extra steps needed. Feedbacks are appreciated, as always.
Last edited by JustOneMGuy on Tue Jan 28, 2020 3:43 am, edited 1 time in total.

Chipss
Monty Mole
Monty Mole
Posts: 107
Joined: Fri Jul 25, 2014 9:47 pm
Pronouns: he/him
Contact:

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby Chipss » Mon Jan 27, 2020 3:02 pm

This looks amazing! Nicely done.
Last edited by Chipss on Mon Jan 27, 2020 5:52 pm, edited 2 times in total.

Daring Tombstone
Blooper
Blooper
Posts: 160
Joined: Mon Aug 28, 2017 10:57 pm
Flair: What? Not 1000 posts? That means I suck right?

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby Daring Tombstone » Mon Jan 27, 2020 3:52 pm

Nice. I never thought about something like this but looks really good.

JustOneMGuy
Spiny
Spiny
Posts: 29
Joined: Sun Jan 26, 2020 1:33 pm

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby JustOneMGuy » Tue Jan 28, 2020 3:43 am

I wrote the wrong line in the post to load the library lol. Fixed.

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby MrDoubleA » Tue Jan 28, 2020 5:49 pm

A good and simple use of the capture buffer. Only thing I will say is that API.load, lunadll.lua and lunaworld.lua shouldn't really be used now. Keep it up!

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby MECHDRAGON777 » Wed Jan 29, 2020 1:08 am

MrDoubleA wrote:
Tue Jan 28, 2020 5:49 pm
A good and simple use of the capture buffer. Only thing I will say is that API.load, lunadll.lua and lunaworld.lua shouldn't really be used now. Keep it up!
to add to this, I will say:

add to luna.lua

Code: Select all

local sectTrans = require("sectTrans")
Feel free to correct me if I am wrong though.

Looks like a nice script though. I need to refresh myself on capture-buffers come beta 4.

JustOneMGuy
Spiny
Spiny
Posts: 29
Joined: Sun Jan 26, 2020 1:33 pm

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby JustOneMGuy » Wed Jan 29, 2020 4:38 am

MrDoubleA wrote:
Tue Jan 28, 2020 5:49 pm
A good and simple use of the capture buffer. Only thing I will say is that API.load, lunadll.lua and lunaworld.lua shouldn't really be used now. Keep it up!
Why "lunaworld.lua" file isn't needed?

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby MrDoubleA » Wed Jan 29, 2020 8:46 am

JustOneMGuy wrote:
Wed Jan 29, 2020 4:38 am
MrDoubleA wrote:
Tue Jan 28, 2020 5:49 pm
A good and simple use of the capture buffer. Only thing I will say is that API.load, lunadll.lua and lunaworld.lua shouldn't really be used now. Keep it up!
Why "lunaworld.lua" file isn't needed?
You should just have a luna.lua file in your episode folder now, it doesn't need to be called lunaworld.lua.

JustOneMGuy
Spiny
Spiny
Posts: 29
Joined: Sun Jan 26, 2020 1:33 pm

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby JustOneMGuy » Fri Jan 31, 2020 2:51 pm

Update 1.0.1:
1. Adds a fade effect when exiting a level.

Chipss
Monty Mole
Monty Mole
Posts: 107
Joined: Fri Jul 25, 2014 9:47 pm
Pronouns: he/him
Contact:

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby Chipss » Fri Jan 31, 2020 3:00 pm

Suggestion, add an option for fade to black on warp transitions as opposed to the cross fade.

JustOneMGuy
Spiny
Spiny
Posts: 29
Joined: Sun Jan 26, 2020 1:33 pm

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby JustOneMGuy » Mon Feb 03, 2020 4:35 am

Chipss wrote:
Fri Jan 31, 2020 3:00 pm
Suggestion, add an option for fade to black on warp transitions as opposed to the cross fade.
That's more difficult to do, so I am sticking with the crossfade effect for now.

PdizzleParker
Chain Chomp
Chain Chomp
Posts: 324
Joined: Fri Aug 10, 2018 11:26 am
Flair: doin your mom
Pronouns: they/them
Contact:

Re: sectTrans.lua: Screen wide fade effects when section-switch

Postby PdizzleParker » Thu Mar 26, 2020 3:02 pm

This is pretty simple, but cool. It might be useful for levels that have some kind of parallel world, sothat it transitions smoothly.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari