Added lifetime to bullets

This commit is contained in:
Marco 2025-02-20 16:22:05 +01:00
commit 78c319224a
7 changed files with 50 additions and 2 deletions

View file

@ -11,6 +11,8 @@ decreaseRate = 4.0
[resource]
script = ExtResource("3_ryait")
BulletScene = ExtResource("1_iwsrv")
_bulletLifeTime = 20.0
_destroyOnCollision = false
bulletSpeed = 70.0
bulletCount = 10
rotationSpeed = 0.0

View file

@ -8,6 +8,8 @@
[sub_resource type="Resource" id="Resource_ne4q3"]
script = ExtResource("2_ee42k")
BulletScene = ExtResource("1_4xpdn")
_bulletLifeTime = 20.0
_destroyOnCollision = false
bulletSpeed = 40.0
bulletCount = 10
rotationSpeed = 120.0
@ -25,6 +27,8 @@ WaitForCompletion = true
[sub_resource type="Resource" id="Resource_kohuh"]
script = ExtResource("2_ee42k")
BulletScene = ExtResource("3_gr7a3")
_bulletLifeTime = 20.0
_destroyOnCollision = false
bulletSpeed = 50.0
bulletCount = 16
rotationSpeed = 60.0
@ -42,6 +46,8 @@ WaitForCompletion = true
[sub_resource type="Resource" id="Resource_depjj"]
script = ExtResource("2_ee42k")
BulletScene = ExtResource("1_4xpdn")
_bulletLifeTime = 20.0
_destroyOnCollision = false
bulletSpeed = 50.0
bulletCount = 10
rotationSpeed = 60.0