(request) MM2 ceiling P-switches

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Locus
Fighter Fly
Fighter Fly
Posts: 35
Joined: Sun Mar 17, 2019 12:47 pm
Pronouns: he/him

(request) MM2 ceiling P-switches

Postby Locus » Sun Dec 20, 2020 6:04 am

So due to my lack of time to learn lua and my inexperience with it I was thinking I needed some ceiling P-switches for a level I'm working on. I checked and saw that no one did that one yet. (If someone did my apologies) It would be nice if someone could make those.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: (request) MM2 ceiling P-switches

Postby Emral » Sun Dec 20, 2020 6:14 am

I once made them for Juggle Physics a loooong time ago (here they toggled pswitch state permanently). I wonder how feasible it would be to use them as reference...

Locus
Fighter Fly
Fighter Fly
Posts: 35
Joined: Sun Mar 17, 2019 12:47 pm
Pronouns: he/him

Re: (request) MM2 ceiling P-switches

Postby Locus » Sun Dec 20, 2020 6:21 am

I see...well you'll have to forgive me for my lack of know-how. I don't know whether it would be feasible to somehow make all the existing code for it from back then into an all new npc compatible with Beta 4. Looking at the footage I got a couple of thoughts about perhaps a custom p-switch npc that can be turned normal or upside down depending on the option for it. Perhaps with some extra configurable settings like p-switch time limit. (Unless that would be a problem for the sound effect..)

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: (request) MM2 ceiling P-switches

Postby Emral » Sun Dec 20, 2020 6:41 am

Locus wrote:
Sun Dec 20, 2020 6:21 am
I see...well you'll have to forgive me for my lack of know-how. I don't know whether it would be feasible to somehow make all the existing code for it from back then into an all new npc compatible with Beta 4. Looking at the footage I got a couple of thoughts about perhaps a custom p-switch npc that can be turned normal or upside down depending on the option for it. Perhaps with some extra configurable settings like p-switch time limit. (Unless that would be a problem for the sound effect..)
That might perhaps be a fun idea. I will note that the internal P-Switch length is tied to the stopwatch length, as they both occupy the same memory offset.

I could maybe look into crafting an expanded pswitch soon. Depending on how much time I have I might get it done within the next week (Mystery Contest kinda butting in).

Locus
Fighter Fly
Fighter Fly
Posts: 35
Joined: Sun Mar 17, 2019 12:47 pm
Pronouns: he/him

Re: (request) MM2 ceiling P-switches

Postby Locus » Sun Dec 20, 2020 6:49 am

Ah, that would be awesome! Honestly still keeps me thinking about the creative possibilities of having an expanded p-switch. Would be fun to maybe see how something like a p-switch that's to be attached to a wall could function. Like kicking a shell to hit it or hitting it with a throwable npc, so like a kind of variant that can't be activated by jumping on it, however can be by hitting it with some npcs.


Return to “LunaLua Help”

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari