Share and discuss custom LunaLua code and content packs for SMBX2.
Moderator: Userbase Moderators
|
|
|
|
-
Shodax
- Bot

- Posts: 53
- Joined: Sat Feb 05, 2022 2:24 pm
- Pronouns: he
Postby Shodax » Mon Sep 02, 2024 5:35 pm
Marioman2007 wrote: ↑Mon Sep 02, 2024 2:02 am
It seems like you're doing something wrong, all the powerups work fine with anotherwalljump for me.
I've already found the solution. I was using an old version of walljump.lua.
Thank you
|
|
|
|
|
|
|
|
|
-
AlanLive2020
- Buster Beetle

- Posts: 98
- Joined: Fri Nov 27, 2020 8:15 am
- Flair: The guy with no social skills or self-esteem :')
Postby AlanLive2020 » Wed Sep 04, 2024 9:21 pm
Wtf, I was actually credited for something!?
Personally, I think I didn't deserve it at all, cause the only thing I did was the actual concept, but uhh... thanks? I am kinda embarrassed that someone actually saw my old posts when I was even more cringy lol
Anyway, this is really cool! I wonder how long this took to make.
|
|
|
|
|
|
|
|
|
-
MegaDood
- Charged Spiny

- Posts: 1822
- Joined: Wed Nov 01, 2017 2:43 am
Postby MegaDood » Wed Sep 04, 2024 10:17 pm
AlanLive2020 wrote: ↑Wed Sep 04, 2024 9:21 pm
Wtf, I was actually credited for something!?
Personally, I think I didn't deserve it at all, cause the only thing I did was the actual concept, but uhh... thanks? I am kinda embarrassed that someone actually saw my old posts when I was even more cringy lol
Anyway, this is really cool! I wonder how long this took to make.
Oh hey!
Im glad you like it, your powerups are very cool.
It took about 2 months to do, with lots of late night vc sessions and memes to get us through, but it was a lot of fun to do!
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Rocky Wrench

- Posts: 641
- Joined: Wed May 24, 2023 7:00 pm
- Flair: OK in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Wed Sep 04, 2024 10:53 pm
2 months? Wow, that really isn’t that much time in the grand scheme of things. Can’t really say anything about that tho, since I was one of the last people to join in on this.
|
|
|
|
|
|
|
|
|
-
Shodax
- Bot

- Posts: 53
- Joined: Sat Feb 05, 2022 2:24 pm
- Pronouns: he
Postby Shodax » Tue Sep 17, 2024 1:57 pm
help
There is a problem with the "penguin suit". Everything works well but when walking or running and pressing downwards it should slide but this error comes out:
I already tried to copy the files "Mario-ap_penguinsuit", "Mario-ap_penguinsuitslide" and the other characters in the Powerups folder and in the Costumes folder but it still gives the same error What is happening?
Added in 8 minutes 24 seconds:
Shodax wrote: ↑Tue Sep 17, 2024 1:57 pm
help
There is a problem with the "penguin suit". Everything works well but when walking or running and pressing downwards it should slide but this error comes out:
I already tried to copy the files "Mario-ap_penguinsuit", "Mario-ap_penguinsuitslide" and the other characters in the Powerups folder and in the Costumes folder but it still gives the same error What is happening?
sorry, I already found the problem is that I use "costumes"
Use this code:
Code: Select all function onStart()
Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true)
Player.setCostume(CHARACTER_LUIGI,"SMW-Luigi",true)
Player.setCostume(CHARACTER_PEACH,"Modern-Peach",true)
Player.setCostume(CHARACTER_TOAD,"SMW-Toad",true)
Player.setCostume(CHARACTER_WARIO, "SMW-Wario",true)
end
It seems that it is incompatible with costumes
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Rocky Wrench

- Posts: 641
- Joined: Wed May 24, 2023 7:00 pm
- Flair: OK in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Tue Sep 17, 2024 3:07 pm
Shodax wrote: ↑Tue Sep 17, 2024 2:05 pm
help
There is a problem with the "penguin suit". Everything works well but when walking or running and pressing downwards it should slide but this error comes out:
I already tried to copy the files "Mario-ap_penguinsuit", "Mario-ap_penguinsuitslide" and the other characters in the Powerups folder and in the Costumes folder but it still gives the same error What is happening?
Added in 8 minutes 24 seconds:
sorry, I already found the problem is that I use "costumes"
Use this code:
Code: Select all function onStart()
Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true)
Player.setCostume(CHARACTER_LUIGI,"SMW-Luigi",true)
Player.setCostume(CHARACTER_PEACH,"Modern-Peach",true)
Player.setCostume(CHARACTER_TOAD,"SMW-Toad",true)
Player.setCostume(CHARACTER_WARIO, "SMW-Wario",true)
end
It seems that it is incompatible with costumes
I’ve been rewriting the code for it because of that error. No idea when it’ll be completed tho
|
|
|
|
|
|
|
|
|
-
IttaBaby
- Bot

- Posts: 55
- Joined: Sat Apr 08, 2017 8:19 pm
Postby IttaBaby » Wed Sep 18, 2024 10:25 am
Frog Mario vanishes when you duck jump. 
And grabbing.
Yeah, frog suit is missing lots of frames.
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Rocky Wrench

- Posts: 641
- Joined: Wed May 24, 2023 7:00 pm
- Flair: OK in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Wed Sep 18, 2024 10:50 am
IttaBaby wrote: ↑Wed Sep 18, 2024 10:25 am
Frog Mario vanishes when you duck jump. 
And grabbing.
Yeah, frog suit is missing lots of frames.
??? It has all of the necessary frames. Can you show some cases when that happens?
|
|
|
|
|
|
|
|
|
-
IttaBaby
- Bot

- Posts: 55
- Joined: Sat Apr 08, 2017 8:19 pm
Postby IttaBaby » Wed Sep 18, 2024 7:35 pm
mariobrigade2018 wrote: ↑Wed Sep 18, 2024 10:50 am
??? It has all of the necessary frames. Can you show some cases when that happens?
I think I know what's happening. I think it's interacting poorly with the costume I'm wearing.
never mind, found it
Last edited by IttaBaby on Wed Sep 18, 2024 8:34 pm, edited 1 time in total.
|
|
|
|
|
|
|
|
|
-
John Nameless
- 2025 Egg Hunter

- Posts: 118
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby John Nameless » Wed Sep 18, 2024 8:20 pm
IttaBaby wrote: ↑Wed Sep 18, 2024 7:35 pm
I think I know what's happening. I think it's interacting poorly with the costume I'm wearing.
I thought of a bootsy solution but I need to know: if I were to set a check for what powerup is being used, what would it be called?
Code: Select all if cp.getCurrentName(player) == "Frog Suit" then
-- do the stuff
end
|
|
|
|
|
|
|
|
|
-
Shodax
- Bot

- Posts: 53
- Joined: Sat Feb 05, 2022 2:24 pm
- Pronouns: he
Postby Shodax » Sat Sep 28, 2024 3:57 pm
Hi, I have a question, I don't know if you know. I've looked a little at the code for the penguin suit and I haven't found a way to add a new character to the penguin suit. In other custom powerups I've managed to add other extra characters such as "Wario" or "Ninjabomberman." How could I add a new character to the penguin suit?
I have tried the following:
ap_penguinsuit.lua
Line 28
Code: Select all local characterList = {"mario", "luigi", "toad", "peach", "link", "wario"}
local penguinDanceStep = 0 --To do the penguin dance, as SMM2 Mario, just press up and down a couple of times. It's fun!
local apt = {}
apt.spritesheets = {
Graphics.sprites.mario[7].img,
Graphics.sprites.luigi[7].img,
Graphics.sprites.peach[7].img,
Graphics.sprites.toad[7].img,
Graphics.sprites.link[7].img,
Graphics.sprites.wario[7].img,
}
apt.iniFiles = {
Misc.resolveFile("mario-ap_penguinsuit.ini"),
Misc.resolveFile("luigi-ap_penguinsuit.ini"),
Misc.resolveFile("wario-ap_penguinsuit.ini"),
}
line 57
Code: Select all apt.penguinSettings = {
slideConstant = 1.5, --A constant used to determine how much you speed up upon starting to slide.
slopeConstant = 0.1, --A constant used to determine your acceleration down and up slopes.
waterAccelerationConstant = 1.5,
waterDecelerationConstant = 0.25,
slideMinimumSpeed = 3,
--{Idle, Idle2, Horizontal1, Horizontal2, Horizontal3, Up1, Up2, Up3, Down1, Down2, Down3, HoldIdle1, HoldIdle2, HoldSwim1, HoldSwim2, HoldSwim3}
normalFrameList = {28, 28, 29, 27, 28, 34, 32, 33, 35, 36, 37, 28, 28, 29, 27, 28},
SMM2FrameList = {20, 39, 40, 43, 20, 56, 67, 58, 59, 60, 61, 62, 63, 64, 65, 62},
animationList = {
["swimIdle"] = {1, 2, frameDelay = 12},
["swimHorizontal"] = {4, 3, 4, 5, 5, 5, 5, 5, 5, frameDelay = 4},
["swimUp"] = {7, 6, 7, 8, 8, 8, 8, 8, 8, frameDelay = 4},
["swimDown"] = {10, 9, 10, 11, 11, 11, 11, 11, 11, frameDelay = 4},
["swimHold"] = {15, 14, 15, 16, 16, 16, 16, 16, 16, frameDelay = 4},
["swimIdleHold"] = {12, 13, frameDelay = 12},
["swimShoot"] = {3, 4, 4, frameDelay = 4},
["penguinDanceOld"] = {68, -69, 68, 69, frameDelay = 6},
["penguinDance"] = {68, 68, -69, -69, 68, 68, 69, 69, 68, 69, 70, 71, -70, -70, 71, 71, 70, 70, 71, -70, -69, 68, 68,
74, 74, 83, 83, 82, 82, -82, -82, -83, -83, -74, -74, 74, 74, 83, 83, 82, 82, -82, -82, -83, -83,
-74, -74, 74, 74, 68, 75, 75, 68, 68, 75, 75, 68, 76, 76, 87, 87, 76, 76, 68, 75, 75, 68, 68, 75,
75, 68, -76, -76, -87, -87, -76, -76, 68, 75, 75, 68, 68, 75, 75, 68, 78, 99, 99, 99, 78, 68, 75,
75, 68, 68, 75, 75, 68, -78, -99, -99, -99, -78, frameDelay = 4},
},
slideOffsets = {
["SMM2-MARIO"] = 2,
["SMM2-LUIGI"] = 3,
["SMM2-TOAD"] = 1,
["SMM2-TOADETTE"] = 1,
["SMM2-YELLOWTOAD"] = 1,
["mario"] = 4,
["luigi"] = 0,
["toad"] = 0,
["peach"] = 0,
["link"] = 0,
["wario"] = 0,
},
}
line 844
Code: Select all local characterDeathEffects = {
[CHARACTER_MARIO] = 3,
[CHARACTER_LUIGI] = 5,
[CHARACTER_PEACH] = 129,
[CHARACTER_TOAD] = 130,
[CHARACTER_WARIO] = 130,
}
but it still gives this error:
Not that I need to do or that I'm doing wrong
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Rocky Wrench

- Posts: 641
- Joined: Wed May 24, 2023 7:00 pm
- Flair: OK in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sat Sep 28, 2024 9:19 pm
Again, I’d wait until the next version of the pack is out, as it would make it consistent with the newer powerup system.
|
|
|
|
|
|
|
|
|
-
altreks
- Goomba

- Posts: 3
- Joined: Sun Sep 29, 2024 12:35 pm
- Pronouns: altreks
Postby altreks » Sun Sep 29, 2024 12:50 pm
i need help
When I try my episode this appears, but when I enter a level with the power up it appears but when I touch it it doesn't work
|
|
|
|
|
|
|
|
|
-
Shodax
- Bot

- Posts: 53
- Joined: Sat Feb 05, 2022 2:24 pm
- Pronouns: he
Postby Shodax » Sun Sep 29, 2024 8:48 pm
mariobrigade2018 wrote: ↑Sat Sep 28, 2024 9:19 pm
Again, I’d wait until the next version of the pack is out, as it would make it consistent with the newer powerup system.
ok
thanks
|
|
|
|
|
|
|
|
|
-
timocomsmbx2345
- Foo

- Posts: 853
- Joined: Sat Feb 06, 2016 1:44 pm
-
Contact:
Postby timocomsmbx2345 » Sat Oct 12, 2024 7:32 pm
Oh my god, this is shaping up to be the greatest thing to happen to SMBX since beta 4's release!
|
|
|
|
|
|
|
|
|
-
mariobrigade2018
- Rocky Wrench

- Posts: 641
- Joined: Wed May 24, 2023 7:00 pm
- Flair: OK in coding who dreams of making a Mario game
- Pronouns: he/him
Postby mariobrigade2018 » Sat Oct 12, 2024 8:28 pm
timocomsmbx2345 wrote: ↑Sat Oct 12, 2024 7:32 pm
Oh my god, this is shaping up to be the greatest thing to happen to SMBX since beta 4's release!
Did you mean, SMBX B 5?
And yea, this is pretty cool.
|
|
|
|
|
|
|
|
|
-
John Nameless
- 2025 Egg Hunter

- Posts: 118
- Joined: Mon Jul 10, 2023 11:40 pm
- Flair: vidio gaem
Postby John Nameless » Sun Oct 13, 2024 4:23 am
altreks wrote: ↑Sun Sep 29, 2024 12:50 pm
i need help
When I try my episode this appears, but when I enter a level with the power up it appears but when I touch it it doesn't work
It seems that you didn't register your powerup to the right npc id properly then
|
|
|
|
|
|
|
|
|
-
vitzie629
- Tweeter

- Posts: 144
- Joined: Sat Sep 22, 2018 5:50 pm
- Flair: I have greatly made levels!
- Pronouns: he/him
-
Contact:
Postby vitzie629 » Tue Oct 15, 2024 10:58 am
|
|
|
|
|
|
|
|
|
-
altreks
- Goomba

- Posts: 3
- Joined: Sun Sep 29, 2024 12:35 pm
- Pronouns: altreks
Postby altreks » Tue Oct 15, 2024 2:14 pm
MrNameless wrote: ↑Sun Oct 13, 2024 4:23 am
altreks wrote: ↑Sun Sep 29, 2024 12:50 pm
i need help
When I try my episode this appears, but when I enter a level with the power up it appears but when I touch it it doesn't work
It seems that you didn't register your powerup to the right npc id properly then
I mean how? because when I put the complete power ups files all in my minisode folder and I put the powerups.lua and the map.lua, that error appears
|
|
|
|
|
|
|
|
|
-
timocomsmbx2345
- Foo

- Posts: 853
- Joined: Sat Feb 06, 2016 1:44 pm
-
Contact:
Postby timocomsmbx2345 » Tue Oct 15, 2024 5:03 pm
mariobrigade2018 wrote: ↑Sat Oct 12, 2024 8:28 pm
timocomsmbx2345 wrote: ↑Sat Oct 12, 2024 7:32 pm
Oh my god, this is shaping up to be the greatest thing to happen to SMBX since beta 4's release!
Did you mean, SMBX B 5?
And yea, this is pretty cool.
b4/maglx3 build was when a large amount of npc got added to the editor
|
|
|
|
|
Return to “LunaLua”
|