Search results

  1. Fripouney

    Detect when player attacks an enemy?

    I did some research in the interaction.c file and found the INT_HIT_FROM_ABOVEflag, which seems to be giving some very promising results. I'll do some more testing to make sure everything works as intended ! EDIT : Well, nevermind I thought it did something, but after more testing it ends up...
  2. Fripouney

    Detect when player attacks an enemy?

    Thanks again for all the help, I managed to make it work correctly for attacks like punching, diving or kicking. For some reason, bouncing on an enemy doesn't seem to be considered as an attack at all, since the value of interactionis still 0. I'll need to do some more research to get this case...
  3. Fripouney

    Detect when player attacks an enemy?

    I'm currently testing all of this and it seems to work very well, thanks ! I've just got one more question though, what's the difference between INTERACT_BOUNCE_TOPand INTERACT_BOUNCE_TOP2? 1715615490 Update : after testing I realized that these interactions actually happen when you are close to...
  4. Fripouney

    Detect when player attacks an enemy?

    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...