Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2961

LunaLua • FrozenMuncher's P-Switch Pack

$
0
0
FrozenMuncher's P-Switch Pack

Introduction
This is my small pack to implement a few P-Switch related functions into SMBX2. It consists of 4 major components: a P-Switch replica, a blue P-Coin, a P-Door and a "Warp Fix".

The P-Switch
This is a replica of the vanilla P-Switch with an extra setting: It can be reusable! Once the P-event has ended the switch will pop
up again to be used once more!

The P-Coin
A simple coin that only appears when a P-Switch is active. It's a coin replica, however doesn't use the
coin AI as it would turn into blocks otherwise.

The P-Door
This door is toggled by a P-Switch. Both the default active door and default inactive door can be used.
If you use the Warp Fix script (which is recommended) you can simply place the door and an entrance. The
outline will not be enterable, but the door will be! No need for layer shenanigans.

The Warp Fix
WarpFix is a script you can load into your luna.lua file. This script prevents the player from entering doors
and pipes under certain conditions. For doors the player both needs to stand on ground (unless underwater) and
be infront of a valid door BGO (all vanilla doors are allowed aswell as the active P-Door). For horizontal pipes
the player has to stand on ground to enter them (unless underwater), and vertical pipes can, as usual, always be
entered.

Previews
Spoiler: show
Reusable P-Switch and P-Coins
Image

P-Door
Image

Warp Fix
Image
Image

Download


Credits
Me (FrozenMuncher)
FireSepharim (noFloatingDoors)
Sprites ripped by RandomTalkingBush

Please give credit!

Statistics: Posted by FrozenMuncher — Tue Feb 13, 2024 7:20 pm



Viewing all articles
Browse latest Browse all 2961

Trending Articles