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

Share and discuss custom LunaLua code and content packs for SMBX2.
JustOneMGuy
Koopa Troopa
Koopa Troopa
Posts: 26
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.

User avatar
Chipss
Fighter Fly
Fighter Fly
Posts: 65
Joined: Fri Jul 25, 2014 9:47 pm
Current Project: Luigi's Toxic Adventure
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.
Best way to contact me: Chipss#9594 on Discord

User avatar
Daring Tombstone
Bit
Bit
Posts: 141
Joined: Mon Aug 28, 2017 10:57 pm
Flair: What? Not 1000 posts? That means I suck right?
Current Project: Something Maybe
Chat Username: Chaperone

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.
Happy Dance
Image
Check out my completed episode
Spoiler: show
Image
Check out my halloween level
Spoiler: show
Image

JustOneMGuy
Koopa Troopa
Koopa Troopa
Posts: 26
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.

User avatar
MrDoubleA
Spiny
Spiny
Posts: 45
Joined: Mon Aug 20, 2018 7:02 am
Contact:

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!
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6218
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Current Project: http://www.supermariobrosx.org/forums/v ... 9&start=10
Chat Username: 鬼人 正邪
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.

ImageImageImage

Image

JustOneMGuy
Koopa Troopa
Koopa Troopa
Posts: 26
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?

User avatar
MrDoubleA
Spiny
Spiny
Posts: 45
Joined: Mon Aug 20, 2018 7:02 am
Contact:

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.
Hi. I'm not very active on the forums.
(MrDoubleA#3124 on Discord)

rooms.lua - Quick respawn & Celeste-styled rooms
simpleLayerMovement.lua - For all your custom layer movement needs!
MrDoubleA's NPC Pack
Are you a mouse?
I support: show
Image
Image

JustOneMGuy
Koopa Troopa
Koopa Troopa
Posts: 26
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.

User avatar
Chipss
Fighter Fly
Fighter Fly
Posts: 65
Joined: Fri Jul 25, 2014 9:47 pm
Current Project: Luigi's Toxic Adventure
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.
Best way to contact me: Chipss#9594 on Discord

JustOneMGuy
Koopa Troopa
Koopa Troopa
Posts: 26
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.

User avatar
thegameseum
Blooper
Blooper
Posts: 194
Joined: Fri Aug 10, 2018 11:26 am
Flair: h
Current Project: Nothing
Chat Username: TheGameseum
Contact:

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

Postby thegameseum » 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.
ImageImage
walker guy ftw

I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

(GENERATION 30: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.)

I support:
Spoiler: show
Image
Image


Return to “LunaLua”

Who is online

Users browsing this forum: Chilly14 and 2 guests