freeRoam.lua v1.1 - 2.5D Open World Hubs! (NOW WITH FRIENDLY NPCS)

Share and discuss custom LunaLua code and content packs for SMBX2.
Max Flower
Rex
Rex
Posts: 32
Joined: Mon Apr 22, 2019 11:30 pm
Pronouns: He/Him

freeRoam.lua v1.1 - 2.5D Open World Hubs! (NOW WITH FRIENDLY NPCS)

Postby Max Flower » Mon Nov 06, 2023 2:24 am

freeRoam.lua completely changes how a level is controlled from being a side-scroller to being a top town "Zelda-Like" RPG, allowing for either four directional or eight directional movement depending on what character you use, there's a lot to cover so hopefully it all makes sense.
Currently the only working characters are:
  • Mario (Eight Directional Movement by default)
  • Luigi (Eight Directional Movement by default)
  • Toad (Eight Directional Movement by default)
  • Peach (Four Directional Movement by default)
  • Link (Four Directional Movement by default)
Credits: show
- animationPal.lua by MrDoubleA
- Big Mario Sprites custom made by Moses Kim on mfgg.net
- Big Luigi Sprites custom made by mariosbestfan on mfgg.net
- Toad Sprites ripped from unused Mario & Luigi Partner's in Time Content by ElZboub on Spriter's Resource
- Peach Sprites ripped from Mario & Luigi Superstar Saga by A.J. Nitro on Spriter's Resource
- Link Sprites ripped from The Legend Of Zelda: A Link to the Past by Mister Man on Spriter's Resource
- HUD Graphics ripped from Super Mario All Stars: Super Mario Bros. 3
- Toadsworth Sprites ripped from Mario & Luigi Partners in Time by A.J Nitro on Spriter's Resource
Example Video: show
Powerups in open world hubs: show
Powerups are handled separately in vanilla levels and open world hubs, if you're playing as Mario or Luigi you have a powerup and reserve item used in vanilla levels and a separate set for the open world hubs, the same goes for the others but with hearts.
Currently only these powerups are available for use in open world hubs:
  • Small
  • Big
  • Fire (Doesn't do anything at the moment)
Level Warps: show
Level Warps are easy to set up, just needing a level file, a level name and optionally amount of stars required to enter, think the vanilla worlds and vanilla level hubs combined.
Most of the vanilla world map levels have warps and there's also one that's invisible in-game for your convenience.
Friendly NPCS: show
You can turn any NPC into a Friendly NPC, it just needs to have a sprite for each direction.
When you place the npc you need to either give it a message or an event and that's all you need.
Friendly NPCS can trigger any non-lua SMBX Events, just put the name of one of the events into the box.
It also works with littleDialogue.lua
An example folder is included in the download if you need it.

Changelog: show
v1.0.1:
  • Fixed an error that made the pack unusable.
v1.1:
  • Added Friendly NPCS.
How To Install: show
  1. Drag the contents of the 'freeRoam' folder into your level folder.
  • Drag animationPal.lua into the level file.
  • If there's already a luna.lua file in your level folder and don't want to override it, add

    Code: Select all

    require("freeRoam")
    to luna.lua and it will work the same.
  • If you're having trouble with installing the pack looking inside the freeRoam Example folder might be able to help. (you will still need to download animationPal.lua and drag it into the freeRoam example.)
One last thing, if you're using freeRoam.lua in your episode please let me know, I'd love to see what other people do with this!
Last edited by Max Flower on Fri Mar 29, 2024 4:54 am, edited 3 times in total.

Deltom
Bob-Omb
Bob-Omb
Posts: 24
Joined: Tue Jun 28, 2022 10:59 am
Flair: also known as "mawio" :3
Pronouns: she/her
Contact:

Re: freeRoam.lua v1.0.0 - 2.5D Open World Hubs! (Super Mario Bros. Wonder Style)

Postby Deltom » Mon Nov 06, 2023 5:24 pm

YEEEEEEAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

HAK0TA538
Bob-Omb
Bob-Omb
Posts: 22
Joined: Wed Oct 18, 2023 11:57 pm
Flair: Lua is cool
Pronouns: He/Him

Re: freeRoam.lua v1.0.1 - 2.5D Open World Hubs! (Super Mario Bros. Wonder Style)

Postby HAK0TA538 » Sun Nov 12, 2023 5:40 pm

This is amazing! Is this mostly for entirely free roam mario games or is there a way to block paths so like mario wonder, we can have certain areas with levels you have to go through and certain areas that just are free roam?

Also whats the point of powerups in world map, can you take damage there?

ethanmariogamer333
Goomba
Goomba
Posts: 3
Joined: Sat Jul 01, 2023 1:09 pm
Pronouns: he/him

Re: freeRoam.lua v1.0.1 - 2.5D Open World Hubs! (Super Mario Bros. Wonder Style)

Postby ethanmariogamer333 » Fri Jan 26, 2024 8:22 pm

I'm using it in my episode just to let you know

Max Flower
Rex
Rex
Posts: 32
Joined: Mon Apr 22, 2019 11:30 pm
Pronouns: He/Him

Re: freeRoam.lua v1.0.1 - 2.5D Open World Hubs! (Super Mario Bros. Wonder Style)

Postby Max Flower » Fri Mar 29, 2024 3:31 am

HAK0TA538 wrote:
Sun Nov 12, 2023 5:40 pm
This is amazing! Is this mostly for entirely free roam mario games or is there a way to block paths so like mario wonder, we can have certain areas with levels you have to go through and certain areas that just are free roam?

Also whats the point of powerups in world map, can you take damage there?
Sorry for replying so late, it's entirely free roam with no way to block paths, you could place invisible blocks around a path to do it I guess.

The powerups on the world map will be used more in future versions.

Mal8rk
Snifit
Snifit
Posts: 200
Joined: Mon Oct 25, 2021 11:04 pm
Flair: English Speaking Spanish Speaker
Pronouns: He/Him
Contact:

Re: freeRoam.lua v1.1 - 2.5D Open World Hubs! (NOW WITH FRIENDLY NPCS)

Postby Mal8rk » Fri Mar 29, 2024 7:03 pm

Is it possible for there to be a little animation before playing a level? Maybe something like Mario saying "Here we go!" and then it fading to black?


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari