How to change the player's frame when they are in a boot

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

Moderator: Userbase Moderators

PizzaNoob
Fighter Fly
Fighter Fly
Posts: 48
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

How to change the player's frame when they are in a boot

Postby PizzaNoob » Thu Apr 17, 2025 3:51 pm

Basically, I want to change the player's frame when inside a boot (I don't feel like explaining rn on why, just want to figure out how to do that).

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: How to change the player's frame when they are in a boot

Postby mariobrigade2018 » Thu Apr 17, 2025 5:01 pm

Dunno why you’re being so secretive, but try:

Code: Select all

if player.mount == MOUNT_BOOT then
player.frame = frameID
end

PizzaNoob
Fighter Fly
Fighter Fly
Posts: 48
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

Re: How to change the player's frame when they are in a boot

Postby PizzaNoob » Thu Apr 17, 2025 6:43 pm

mariobrigade2018 wrote:
Thu Apr 17, 2025 5:01 pm
Dunno why you’re being so secretive, but try:

Code: Select all

if player.mount == MOUNT_BOOT then
player.frame = frameID
end

I tried this but it didn’t work (maybe if I do it differently…). I’ve been testing out the frog suit lately, but it looks off when on the boot. I didn’t want anyone to be confused if they haven’t checked out the power up pack.

Added in 2 hours 27 minutes 6 seconds:
Also, do you happen to know a way on how to allow Toad to ride yoshis (and spawn them from a "?" block).

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: How to change the player's frame when they are in a boot

Postby mariobrigade2018 » Thu Apr 17, 2025 9:37 pm

PizzaNoob wrote:
Thu Apr 17, 2025 9:10 pm
Added in 2 hours 27 minutes 6 seconds:
Also, do you happen to know a way on how to allow Toad to ride yoshis (and spawn them from a "?" block).
Uh, I don’t think that’s possible. (Could be wrong tho)

PizzaNoob
Fighter Fly
Fighter Fly
Posts: 48
Joined: Wed May 29, 2024 8:36 pm
Flair: I like to make comics!
Pronouns: he/him

Re: How to change the player's frame when they are in a boot

Postby PizzaNoob » Thu Apr 17, 2025 10:12 pm

mariobrigade2018 wrote:
Thu Apr 17, 2025 9:37 pm
PizzaNoob wrote:
Thu Apr 17, 2025 9:10 pm
Added in 2 hours 27 minutes 6 seconds:
Also, do you happen to know a way on how to allow Toad to ride yoshis (and spawn them from a "?" block).
Uh, I don’t think that’s possible. (Could be wrong tho)
That's fine, I'll fix the boots somehow.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari