Language…
19 users online: bradcomp, cletus_deletus, DanMario24YT, Domokun007, Green Jerry, GRIMMKIN, hhuxy, JezJitzu, lo fang 123, Nayfal, Nemesis1407, playagmes169, prisvag, Shomi,  shovda, sinseiga, SMW Magic, TheXander, Torchkas - Guests: 277 - Bots: 381
Users: 64,795 (2,374 active)
Latest user: mathew

Change Mario pose in frozen state

hello
How can I change Mario's pose, when he is in a frozen state?

STA $18BD = freeze
-pose = 0F (small) frozen
-pose = 4F (big) frozen


I would like to change to another pose when frozen, there will be some code to execute it

they help me
I'm unsure of what you need help with.

Do you want to change how Mario looks when he is stunned? That being, do you want to change the graphics?

Or, and I assume that's the case, do you have a piece of code that stuns mario, and you want to change the pose for when that happens?
Originally posted by TheJank
I'm unsure of what you need help with.

Do you want to change how Mario looks when he is stunned? That being, do you want to change the graphics?

Or, and I assume that's the case, do you have a piece of code that stuns mario, and you want to change the pose for when that happens?





Exactly I want to change the pose when Mario is stunned, and if I want to change the pose whenever I want.
Is there any code to do it.
Quote

STA $18BD = freeze

The "STA" in there makes me think that you're taking that from an ASM.
If that is the case, it could be helpful to specify what ASM that is.

In any case, you can change the pose with this:


Now, this would need some changes depending on how you want to implement it.
For example, if you're either using a Sprite that stuns the player, or maybe a UberASM that stuns the player, or if you're using an Asar Patch.
Because of that, a more clear explanation would be helpful.
Originally posted by TheJank
Now, this would need some changes depending on how you want to implement it.
For example, if you're either using a Sprite that stuns the player, or maybe a UberASM that stuns the player, or if you're using an Asar Patch.
Because of that, a more clear explanation would be helpful.



if I'm using it for a sprite, but when it gets stunned I want to change Mario's pose to others.
There will be a way to force the pose change.
Could you please tell me which sprite you're using?

That way I can tell you exactly how to change the code
Originally posted by TheJank
Could you please tell me which sprite you're using?

That way I can tell you exactly how to change the code



This is the freezer sprite code
Ok. Try this:



I highlighted the changes I made, so you can easily see them. (make sure to change XX to the pose you want!)

Let me know if this works, I didn't test it myself.
Originally posted by TheJank
Ok. Try this:



I highlighted the changes I made, so you can easily see them. (make sure to change XX to the pose you want!)

Let me know if this works, I didn't test it myself.



For some reason it doesn't change the pose, it stays with the 0F pose.

Ohhh, ok, my bad for not reading the entire code lol.

The reason it doesn't work is because the sprite is killed after it touches Mario and stuns him, so it never runs the part that I added to the code.

I can think of 2 solutions:

1. You can do a Hex Edit on the address $00CCDB, changing 0F to whatever you need. Note that this will change Mario's pose everytime he gets stunned, on every level.

2. You can patch this via UberASM, in case you want the pose to change only on this level.



Either way, make sure to backup, always. In case I messed up somewhere, you wanna make sure this doesn't mess up your rom.
Also, undo the modifications that I made to the Sprite code. They're pointless.
Originally posted by TheJank
Ohhh, ok, my bad for not reading the entire code lol.

The reason it doesn't work is because the sprite is killed after it touches Mario and stuns him, so it never runs the part that I added to the code.

I can think of 2 solutions:

1. You can do a Hex Edit on the address $00CCDB, changing 0F to whatever you need. Note that this will change Mario's pose everytime he gets stunned, on every level.

2. You can patch this via UberASM, in case you want the pose to change only on this level.



Either way, make sure to backup, always. In case I messed up somewhere, you wanna make sure this doesn't mess up your rom.
Also, undo the modifications that I made to the Sprite code. They're pointless.




Thank you very much, the 2 solutions work myt well.

It will look great on my Super Mario Bros 2 style hack.




Thanks a lot TheJank