So, thats the first time i try to make an enemy in my life. Basically, i want it to have two "sight ranges" and if the player touches it, the enemy will change it state to the running state. Also, if the player is on a certain state (down state, that means hes falling) and it touches the hurtbox, it should kill it, just like in mario games. I don't know if thats the best way to make it (i mean, the sight boxes and etc), so i'm really accepting advices, suggestions and etc.
And heres the main question: How am i supposed to make the enemy detect the player's state when it enters the collision box? Signals?
(thats a only-learning purpose game, im priotizing learning instead of making a really good game cause thats not supposed to be played someday, im even using free assets!!)