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.

User avatar
deice
Rex
Rex
Posts: 31
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)")
Image

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 :)


Return to “Help and Support”

Who is online

Users browsing this forum: Google [Bot] and 10 guests