diff --git a/characters/teddy/Teddy.gd b/characters/teddy/Teddy.gd index fecac23..86d943b 100644 --- a/characters/teddy/Teddy.gd +++ b/characters/teddy/Teddy.gd @@ -72,6 +72,8 @@ func _physics_process(delta): SPEED = 10.0 if Global.fatigue < 5: SPEED = 2.0 + if Input.is_action_pressed("sprint"): + pass elif Global.fatigue > 5: SPEED = 5.0 if Input.is_action_just_released("sprint"): diff --git a/objects/Bullet/Bullet.tscn b/objects/Bullet/Bullet.tscn index f8b49bf..7b5e197 100644 --- a/objects/Bullet/Bullet.tscn +++ b/objects/Bullet/Bullet.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" path="res://objects/Bullet/Bullet.gd" id="1"] [ext_resource type="PackedScene" uid="uid://pni78bumc5f5" path="res://objects/Bullet/model/Bullet.dae" id="2"] -[sub_resource type="BoxShape3D" id="BoxShape3D_ab5n2"] +[sub_resource type="BoxShape3D" id="BoxShape3D_l4uod"] size = Vector3(0.40456, 0.406836, 0.393048) [node name="Bullet" type="Area3D" groups=["bullet"]] @@ -12,7 +12,7 @@ script = ExtResource("1") [node name="CollisionShape3D" type="CollisionShape3D" parent="." groups=["bullet"]] transform = Transform3D(0.957696, 0, 0, 0, 1, 0, 0, 0, 1.66763, 0, 0, -0.295843) -shape = SubResource("BoxShape3D_ab5n2") +shape = SubResource("BoxShape3D_l4uod") [node name="Bullet" parent="." instance=ExtResource("2")] transform = Transform3D(0.200224, 0, 0, 0, -8.75207e-09, 0.200224, 0, -0.200224, -8.75207e-09, 0, 0, 0)