How to define player animation frames? SMBX2 (2.0.0 b4)

Need help with any SMBX game-related issues? Ask your questions here.
oliacym
Goomba
Goomba
Posts: 2
Joined: Mon Sep 20, 2021 3:35 am

How to define player animation frames? SMBX2 (2.0.0 b4)

Postby oliacym » Wed Oct 13, 2021 8:48 am

Hi all, first off, my apologies if this has been asked before, only I have been searching for a while and can't seem to work it out. I'm looking to replace the playable Mario's walk/run cycle with a slightly longer one, adding another frame. I can replace the sprites no problem, my issue is that I can not get the cycle to change in-game, only in the pge_calibrator.

Now, from what I can gather, the animations are defined in a lua file, whch needs to be updated before any change will stick. But here is where I seem to be stuck because I can not work out what files I should be editing. I'm hopeful if I know I'm working with the right file, I will be able to work out what I need to alter. Many thanks in advance.

deice
Volcano Lotus
Volcano Lotus
Posts: 538
Joined: Fri Jul 23, 2021 7:35 am

Re: How to define player animation frames? SMBX2 (2.0.0 b4)

Postby deice » Thu Oct 14, 2021 3:10 am

if my memory serves me right, custom costumes are configured via a file called "costume.lua" inside the folder "(episode folder)/costumes/(character name)/(costume name)".

the costume is then activated via: Player.setCostume((character constant), "(costume name)")

oliacym
Goomba
Goomba
Posts: 2
Joined: Mon Sep 20, 2021 3:35 am

Re: How to define player animation frames? SMBX2 (2.0.0 b4)

Postby oliacym » Thu Oct 14, 2021 9:52 am

Aha! Costumes! Now this looks like what I need, thank you very much :)

sonic_de_hedhog
Shy Guy
Shy Guy
Posts: 7
Joined: Fri Jan 20, 2023 7:37 am
Pronouns: he/him

Re: How to define player animation frames? SMBX2 (2.0.0 b4)

Postby sonic_de_hedhog » Sat Feb 04, 2023 4:06 pm

by 3rd frame i think of the original smb1 walk but the all stars, smb3 and smw mario only have 2 frames of walk and big mario 4 frames
original smb1 has 3 walk frame, even as super/big mario

mariobrigade2018
Snifit
Snifit
Posts: 244
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: How to define player animation frames? SMBX2 (2.0.0 b4)

Postby mariobrigade2018 » Wed May 24, 2023 8:11 pm

Would this be the same thing for adding extra movesets? (IE:Ground pound, wall jump, flutter jump, ect.)


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari