This commit is contained in:
MaddoScientisto 2024-02-27 22:54:42 +01:00
commit 6d49455b3e
9 changed files with 118 additions and 7 deletions

View file

@ -42,6 +42,7 @@ public partial class PlayerMovement : CharacterBody2D
{
if (Input.IsActionJustPressed("shoot"))
{
Debug.WriteLine("Shoot");
Bullet bullet = BulletScene.Instantiate<Bullet>();
Owner.AddChild(bullet);
bullet.Transform = Muzzle.GlobalTransform;