Hey everyone !
I've been working on my first mod for the past few days, and I want players to get points for performing specific actions (collecting coins, stars, killing enemies, etc.)
My problem here is that I don't understand how to give points for killing enemies since I don't know how to detect when a player attacks them.
I've read in the docs that
Any help would be greatly appreciated !
I've been working on my first mod for the past few days, and I want players to get points for performing specific actions (collecting coins, stars, killing enemies, etc.)
My problem here is that I don't understand how to give points for killing enemies since I don't know how to detect when a player attacks them.
I've read in the docs that
gMarioState.usedObj
could be used when a player stomps a goomba, but again, I'm not too sure how to use this nor if it is the correct way to solve my problem.Any help would be greatly appreciated !