Help changing Snailicorn animation (I don't know Lua)

Need help with any SMBX game-related issues? Ask your questions here.
Metrovania
Fighter Fly
Fighter Fly
Posts: 46
Joined: Mon Nov 04, 2019 11:07 pm
Flair: *obligatory campaign plug*

Help changing Snailicorn animation (I don't know Lua)

Postby Metrovania » Mon Jan 03, 2022 7:49 pm

So I've tried to wrap my head around lua for a bit, and I have to be honest I don't have a clue what I'm doing XD

What I'm attempting to do, is adjust the frame count for the Snailicorn NPC. Currently it has 2 frames for walking, and 1 frame after being hit and stunned. Normally you could just increase the frame count in the configure tool, but since it doesn't run through all the frames in a cycle, it's not that simple.

I'm trying to change it's WALK frame count to 8, and it's stunned frame count to 2. If you were to stack the frames ideally it'd be
LWalk1
LWalk2
LWalk3
LWalk4
LWalk5
LWalk6
LWalk7
LWalk8
LStun1
LStun2
RWalk1
RWalk2
RWalk3
RWalk4
RWalk5
RWalk6
RWalk7
RWalk8
RStun1
RStun2

I take it to chance make this change, I'd have to edit Snailicorn.lua then put the lua file into my level folder?

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

Re: Help changing Snailicorn animation (I don't know Lua)

Postby sonic_de_hedhog » Sun Feb 05, 2023 3:00 am

same with koopa shells

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9708
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Help changing Snailicorn animation (I don't know Lua)

Postby Emral » Tue Feb 07, 2023 2:37 am

In the current version of SMBX2, Snailicorns are hardcoded to have only one frame for its hurt animation. (walkframes = frames - 1)
This will change in the next release. (walkframes = frames - stunframes)


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari