M
morganna
Guest
I have made an enemy that attacks a player (with a spear) and i made a hitbox for it to allow for more precise dodging from the player. Problem is, when my player attacks the enemy and the enemy goes in to a stunned sprite the hitbox would still be there till the animation ended... i want this to be functional for multiples of the same enemy in a single room. possibly doing the same attack at around the same time. How do i make the hit box know the enemy (that created it) has been stunned and make it destroy itself? keep in mind that the hit box has to know the one who spawned it has been stunned and not just other objects like it that can spawn the hitbox. (im using gamemaker language on gamemaker studio 2 btw)