rajouter des bus pour les différents audios

This commit is contained in:
Thomas
2025-04-14 09:13:22 +02:00
parent 6517dd744e
commit e0bbf4aa35
9 changed files with 38 additions and 11 deletions

View File

@@ -99,7 +99,7 @@ can_walk_on_roads = true
[node name="FeetSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_73an3")
autoplay = true
stream_paused = true
bus = &"player_foot_step"
playback_type = 1
[connection signal="loadFromGameState" from="." to="controleur" method="_on_character_body_2d_load_from_game_state"]

View File

@@ -10,6 +10,7 @@ extends Node2D
var can_interact_with : Node2D
func _unhandled_input(event: InputEvent) -> void:
print(human.get_feet_global_position())
human.stop_interaction()
human.velocityVector = Vector2(0, 0)
human.wants_to_grab = false