You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating my mod I needed to detect when a player attacks an enemy. The determine_interaction function returns 0 when Mario doesn't do any action when interacting with the enemy.
However, the function also returns 0 when Mario bounces on the enemy to kill it, which feels weird and makes it harder to detect this type of interaction.
Expected behaviour :
determine_interaction maybe shouldn't return 0 when bouncing on an enemy
EDIT : After more testing, the correct return value for this function when bouncing on an enemy should probably be 64.
This would allow bitwise operations like determine_interaction() & INT_HIT_FROM_ABOVE, or determine_interaction & INT_ANY_ATTACK to work properly and return the values they should in this case.
The text was updated successfully, but these errors were encountered:
Description :
When creating my mod I needed to detect when a player attacks an enemy. The
determine_interaction
function returns 0 when Mario doesn't do any action when interacting with the enemy.However, the function also returns 0 when Mario bounces on the enemy to kill it, which feels weird and makes it harder to detect this type of interaction.
Expected behaviour :
determine_interaction
maybe shouldn't return 0 when bouncing on an enemyEDIT : After more testing, the correct return value for this function when bouncing on an enemy should probably be 64.
This would allow bitwise operations like
determine_interaction() & INT_HIT_FROM_ABOVE
, ordetermine_interaction & INT_ANY_ATTACK
to work properly and return the values they should in this case.The text was updated successfully, but these errors were encountered: