This commit is contained in:
MaddoScientisto 2024-05-02 12:50:08 +02:00
commit 2b53936f8b
6 changed files with 54 additions and 7 deletions

View file

@ -27,7 +27,7 @@ public partial class PlayerMovement : CharacterBody2D
public override void _Ready()
{
_animatedSprite = GetNode<AnimatedSprite2D>("./Smoothing2D/AnimatedSprite2D");
_crosshair = GetNode<Sprite2D>("./Crosshair");
_crosshair = GetNode<Sprite2D>("./Smoothing2D/Crosshair");
_movementDirection = Vector2.Zero;
_facingDirection = Vector2.Zero;