@richard@InvalidProject@ZeroFall I’m currently working on a side project based off of the game “Nine Sols” and I wanted to make a proper damage-taking system. In my other games that I’ve made, I didn’t really include a hitbox nor I-frames in it. I have already made the I-frames and hitbox but I want to make it so that if the enemy has his sword slam animation playing and the player overlaps him, the player gets knocked back a tad bit, takes 1 bar of health out of the 4 that the player has and doesn’t take any extra unless there are other projectiles.
The problem with this though is that I since the sword slam animation in playing for 6-8 frames, the player will take more than 1 bar of health. I want to make it so that the hitbox stops receiving input from that one enemy if hit and deals only 1 bar of health all while receiving info from all the other sprites. Using I-frames won’t work when the player has to combat multiple enemies in a room segment. Do any of you have an idea or a working solution for this?
Dear CrunchyToast, I’m sure you have already heard of my leave on your project and any foreseeable projects you plan to make. I don’t know why you pinged me but I assume it was a mistake- I am not complaining however, just letting you know! As for the issue, I would use sprite-data to make I-frames instead of using other things like sprite kind!
@CrunchyToast the easiest thing to do here would be to just set the “ghost through sprites” flag to true on the enemy attack when the player takes damage