Page 1 of 1

Powerup system bug

Posted: 28 Sep 2019, 17:20
by 3color BombDX
When the SMB3 powerup-system is enabled, for example Mario has a fire flower (state 3) and takes damage, he is reverted to Big Mario (state 2) rather than small Mario (state 1), but when he is invisible [char(1).itemslot= -5], when he takes damage with a powerup (state 3, 4, 5, 6, 7, 8, 9, 10 or 12) he is directly reverted to small Mario (state 1), even with the SMB3 powerup system enabled, which should happen only when the SMB1 powerup system is enabled.
As far as I remember, this bug didn't happen in the previous patch (21)

The GIF below shows what I mean, in the script when mario is ground pounding, his char(1).itemslot is -5
Honeycam 2019-09-28 11-18-44.gif

Posted: 28 Sep 2019, 20:37
by Lx Xzit
No, this bug isn't game's fault but mine. You see, since I had no way to remove player's special abilities (like shoot projectiles, don't let it hover or spin-jumping in mid-air), every time the player do a ground pound in transform into Super Mario. Unfortunately I couldn't find a good way to do this. Locking player keyboard wouldn't help, and also I still have to deal with player's abilities.

Don't forget this script is pretty old. I'm just waiting until 38a implement more functions to make it from scratch in a much clearer way.

Posted: 28 Sep 2019, 21:13
by 3color BombDX
oh, i see, didn't remember this details