I'm just starting with Godot, seems a lot of tutorials and those kind of stuffs.
The point is that more or less I understand the basics, so I decided to start with a very simple game, just a Player and a Skeleton (the enemy). The mecanics is to fight to melee (with swords). So, the Skeleton is wandering around (with a Path2d) until it detects the Player. Then it goes toward it and attack him.
I have created several Area2Ds for:
- Hitbox: to detect when Player sword hit it.
- PlayerDetection: to detect when the Player is at sight.
- AttackDistance: to detect when the Player is close enought to attack him
AttackArea: to detect if the Skeleton sword hits the Player.
Now, my question is... are those areas necesaries or is there a better way to do this?
Thanks in advanced.