Skip to content

player.gd

Lupin edited this page Dec 2, 2024 · 3 revisions

**# PLAYER SCRIPT **

The player script is where player movement, player attacking , and player health tracking happens and is attached to the player scene in our Godot project

In the physics process function this is where the movement and attacking input is read and processed.

Screenshot 2024-11-12 at 7 32 24 AM

Here is the first half of the function, in the initial lines it sets the player's hitbox and checking whether the player has a weapon equipped this is important for later when we get to damage:

Clone this wiki locally