How do you make an enemy AI? I want it to be like this tutorial:
https://kidscancode.org/godot_recipes/4.x/ai/chasing/index.html
But mine doesnt work for some reason. The enemy doesn't detect the player. I have also set the collision layers and masks of the player and the enemy to the same level. There is nothing else in the environment to interact either. Any help would be much appreciated!
Enemy code:
Player code: