added walking to ranged attack

This commit is contained in:
derek
2025-06-27 15:55:13 -05:00
parent adbec01a63
commit f6cc2d611e
2 changed files with 4 additions and 2 deletions

View File

@@ -112,8 +112,7 @@ script = ExtResource("3_knrd4")
[node name="On Floor" type="Node" parent="State Machine"] [node name="On Floor" type="Node" parent="State Machine"]
script = ExtResource("4_hck1p") script = ExtResource("4_hck1p")
move_speed = 7.0 move_speed = 9.0
move_transition_speed = 7.0
[node name="Dodge Roll" type="Node" parent="State Machine"] [node name="Dodge Roll" type="Node" parent="State Machine"]
script = ExtResource("5_hck1p") script = ExtResource("5_hck1p")
@@ -122,6 +121,8 @@ script = ExtResource("5_hck1p")
script = ExtResource("6_08u7w") script = ExtResource("6_08u7w")
fired_object = ExtResource("7_kgmex") fired_object = ExtResource("7_kgmex")
object_speed = 40.0 object_speed = 40.0
move_speed = 2.0
move_transition_speed = 5.0
[node name="Body" type="MeshInstance3D" parent="."] [node name="Body" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.0537765) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.0537765)

View File

@@ -14,6 +14,7 @@ func Enter():
func Physics_Update(delta): func Physics_Update(delta):
body_look_at_mouse() body_look_at_mouse()
standard_movement(delta)
apply_gravity(delta) apply_gravity(delta)
if Input.is_action_just_released("ranged_attack"): if Input.is_action_just_released("ranged_attack"):
fire_projectile() fire_projectile()