https://www.youtube.com/watch?v=T5p2GLC ... elRichards
The doublejump power up works with a jump counter, controlled by two conditions:
1) Mario must be in a specific power up state --> player:mem(0x112,FIELD_WORD) == x
2) Mario must stand on the ground to reset the jump counter ---> player:mem(0x146,FIELD_WORD) == 2
player:mem(0x146,FIELD_WORD) == 2 (Means that Mario is on the ground)
player:mem(0x146,FIELD_WORD) == 0 (Means that Mario is either in mid air or standing on top of npcs)
so when Mario is standing on certain npcs like moving platforms the jump counter won't reset and the doublejump ability goes off until Mario touches the ground again
How can i check if the player is standin on specific npcs? npc:mem(0x76,FIELD_BOOL) doesn't seem to work, or maybe i'm just stupid
