gamedev
Got the enemy to attack when the player is at most, 4 tiles away from the player and is facing the player. Though admittedly, it should be lower. I was just testing the conditions and I will lower the range to make it more reasonable.
I also got the hitbox to change size during the attack, but that's not demonstrated in this recording.