rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Mon Mar 30, 2020 10:16 am

v1.2 is out! Now, finally, layers and timed events reset! There were also some smaller updates and additions, so here's another incomplete list of them:
Incomplete list of changes: show
Timed events, layers, BGOs, water/quicksand, and warps all now reset properly
A few additional options were added
A new respawn effect was added, "diamond sweep".
A bunch of miscellaneous bug fixes
onRespawnReset has been replaced by onReset(fromRespawn) (though onRespawnReset can still be used, its just not recommended)
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
Image
Image

User avatar
BabyWeegee
Rex
Rex
Posts: 92
Joined: Wed Jan 22, 2014 9:08 pm

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby BabyWeegee » Fri Apr 10, 2020 12:02 pm

There seems to still be an issue with the water in the 1.2 build. When I'm testing levels, the first (but only the first) chunk of water always disappears on respawn (although I wouldn't put it past myself to have messed something up on my own)
"I ain't afraid of nothing... except Rottweilers... and expired mayonnaise."

User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Fri Apr 10, 2020 3:49 pm

BabyWeegee wrote:
Fri Apr 10, 2020 12:02 pm
There seems to still be an issue with the water in the 1.2 build. When I'm testing levels, the first (but only the first) chunk of water always disappears on respawn (although I wouldn't put it past myself to have messed something up on my own)
Can you share some more info? That sounds very odd, and I haven't been able to recreate it. If you could send a small level showcasing this, that'd be much appreciated.
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
Image
Image

User avatar
BabyWeegee
Rex
Rex
Posts: 92
Joined: Wed Jan 22, 2014 9:08 pm

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby BabyWeegee » Fri Apr 10, 2020 10:37 pm

Image

Well idk why but it switched from being the first patch of water. This is what happens though.
"I ain't afraid of nothing... except Rottweilers... and expired mayonnaise."

User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Sat Apr 11, 2020 8:48 am

That's odd... however, as I said, I haven't been able to recreate this. Could you provide a small sample level to showcase this bug?
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
Image
Image

User avatar
SPEEDIE
Hoopster
Hoopster
Posts: 174
Joined: Sat Nov 03, 2018 6:22 pm
Flair: Limitations don't exist, Think different.
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms

Postby SPEEDIE » Tue Apr 21, 2020 8:26 am

Enjl wrote:
Fri Feb 21, 2020 10:11 am
Does it invoke a custom lua event when a reset occurs or a room is entered? Would be helpful if people wanna reset their lua routines too. Sadly moving layers will always be a NIGHTMARE.
Look into registerCustomEvent if you wanna provide onEnter and onReset events.
Moving layers are exactly what I need :( Why can't the layers just reset it's position?
If something sounds too good to be true, it probably is.
Check out my YouTube channel for high quality SMBX let's plays and other stuff.
https://www.youtube.com/channel/UCncGyz ... EqBqNJyyTQ

Check out my website for computer related fun..
https://speediegamer.github.io/spd.archive

Join my SMBX discord server for exclusive updates and much more.
https://discord.gg/fahyrvk
Finished Projects:
Image
Ongoing Projects:
Blade of Justice
4lin3r

User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Tue Apr 21, 2020 11:01 am

They do reset now. Also, layers don't have a position.
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
Image
Image

User avatar
SPEEDIE
Hoopster
Hoopster
Posts: 174
Joined: Sat Nov 03, 2018 6:22 pm
Flair: Limitations don't exist, Think different.
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby SPEEDIE » Tue Apr 21, 2020 11:53 am

MrDoubleA wrote:
Tue Apr 21, 2020 11:01 am
They do reset now. Also, layers don't have a position.
Oh, turns out I used the wrong version lol. Thanks for this awesome quick respawn script.
If something sounds too good to be true, it probably is.
Check out my YouTube channel for high quality SMBX let's plays and other stuff.
https://www.youtube.com/channel/UCncGyz ... EqBqNJyyTQ

Check out my website for computer related fun..
https://speediegamer.github.io/spd.archive

Join my SMBX discord server for exclusive updates and much more.
https://discord.gg/fahyrvk
Finished Projects:
Image
Ongoing Projects:
Blade of Justice
4lin3r

User avatar
Oshi
Kamikaze Koopa
Kamikaze Koopa
Posts: 1218
Joined: Sun Aug 16, 2015 12:34 pm
Flair: This account is dying

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby Oshi » Mon Jun 01, 2020 12:33 pm

Does this work with the current Beta 4 patch?

Edit: Okay, I tried it out and it does indeed work, good. Never mind I guess.
Don't expect me to post here often, if at all.

I'm no expert, but I'm pretty sure that this isn't supposed to happen.

User avatar
Cedur
Toad
Toad
Posts: 6676
Joined: Tue Jun 28, 2016 10:14 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby Cedur » Mon Jun 01, 2020 3:38 pm

I tried it myself, haven't gotten any error thus far.
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why. And remember, Yoshis are tools to be used and discarded.

ShadowStarX (06/14/18) wrote: South Korea is easy deal

georgespezi12
Bob-omb
Bob-omb
Posts: 36
Joined: Mon Jun 01, 2020 3:45 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby georgespezi12 » Fri Aug 07, 2020 5:01 am

Rooms.lua can be modified to replace quick respawn with bonus health for megaman-like gameplay.

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 543
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby 1AmPlayer » Fri Aug 07, 2020 9:08 am

georgespezi12 wrote:
Fri Aug 07, 2020 5:01 am
Rooms.lua can be modified to replace quick respawn with bonus health for megaman-like gameplay.
It can work in a way, just not easily since Mega Man's health is not exposed as a variable in the Player class.

georgespezi12
Bob-omb
Bob-omb
Posts: 36
Joined: Mon Jun 01, 2020 3:45 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby georgespezi12 » Fri Aug 07, 2020 7:49 pm

Rooms.lua is excellent for a metroidvania-type level

georgespezi12
Bob-omb
Bob-omb
Posts: 36
Joined: Mon Jun 01, 2020 3:45 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby georgespezi12 » Sat Aug 08, 2020 1:02 pm

Image

Held npcs disappear when you transition rooms.

User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Mon Aug 10, 2020 5:27 am

georgespezi12 wrote:
Sat Aug 08, 2020 1:02 pm
Image

Held npcs disappear when you transition rooms.
I'm aware. You can disable the reset when transitioning between rooms by using one of the settings, though I may include an option to make held NPC's not get reset in the next version.
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
Image
Image

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

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MECHDRAGON777 » Mon Aug 10, 2020 2:56 pm

MrDoubleA wrote:
Mon Aug 10, 2020 5:27 am
georgespezi12 wrote:
Sat Aug 08, 2020 1:02 pm
Image

Held npcs disappear when you transition rooms.
I'm aware. You can disable the reset when transitioning between rooms by using one of the settings, though I may include an option to make held NPC's not get reset in the next version.
Would that also make Starcoins that are set to "3" automatically set to "2" on room transition? As they are now, they do not which means they will never be saved if this is used in the same level as a star-coin.

ImageImageImage
Image

Image

georgespezi12
Bob-omb
Bob-omb
Posts: 36
Joined: Mon Jun 01, 2020 3:45 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby georgespezi12 » Thu Aug 13, 2020 8:33 am

Image
This is a phenomenon I like to call screen wobble, which happens when a player enters disjointed rooms.

User avatar
MrDoubleA
Bit
Bit
Posts: 134
Joined: Mon Aug 20, 2018 7:02 am
Contact:

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby MrDoubleA » Thu Aug 13, 2020 5:20 pm

georgespezi12 wrote:
Thu Aug 13, 2020 8:33 am
Image
This is a phenomenon I like to call screen wobble, which happens when a player enters disjointed rooms.
Yes? That's exactly how it's supposed to act?
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
Image
Image

User avatar
Murphmario
Larry Koopa
Larry Koopa
Posts: 2198
Joined: Fri Dec 20, 2013 7:07 pm

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby Murphmario » Thu Aug 13, 2020 5:21 pm

Try extending the bottom screen left some more if you don't want the wobble.
Now taking graphics requests:
https://docs.google.com/forms/d/1urWpFq ... #responses

My graphics pack:
http://www.supermariobrosx.org/forums/v ... t=1960/url

Really tempted to just make a general graphics thread for all of my graphics instead of just making individual threads for each of them.

georgespezi12
Bob-omb
Bob-omb
Posts: 36
Joined: Mon Jun 01, 2020 3:45 am

Re: rooms.lua - Quick respawn & Celeste-styled rooms (v1.2 update)

Postby georgespezi12 » Fri Aug 14, 2020 3:37 am

or moving the pipe if there is a pipe used to get between rooms.

Added in 10 hours 39 minutes 26 seconds:
Image
If a respawn point isn't set in a section and you fall to your doom, you end up in a a softlocked state.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests