Question of beginners

hey i begin a tutorial of godot and now i wanna now what is the logic for a player can do damage to an enemy

something simple of cours

2d platformer kinda game or like a zelda 1 type of game?

2 Likes

Your question is far too vague. Try asking a specific question.

Well, basically, your enemy has a health stat, and the health is reduced following certain events. (Area entered, collision detected, signal recieved etc). When the health gets to 0, the enemy death is implemented.

It is almost identical to the player health.

Your player can then set off an event, like firing a bullet. When the bullet collides with the enemy, it’s health is decreased. Hence, it took damage.