From 9b9205f37325fe71bbb57c468b791915ed5a4fbc Mon Sep 17 00:00:00 2001 From: Jafar Rahmati Date: Sun, 1 Jun 2025 18:43:21 +0200 Subject: [PATCH] Use SpeedScale in Player.cs in part 9 of 3d tutorial The C# alternative for the Godot code, was using a non existing `PlaybackSpeed` property instead of the same property used by the GDScript alternative: speed_scale (SpeedScale in C#). As a result the C# alternative would not run, while the GDScript alternative worked just fine. --- getting_started/first_3d_game/09.adding_animations.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting_started/first_3d_game/09.adding_animations.rst b/getting_started/first_3d_game/09.adding_animations.rst index 01c809d93..a524202ce 100644 --- a/getting_started/first_3d_game/09.adding_animations.rst +++ b/getting_started/first_3d_game/09.adding_animations.rst @@ -451,11 +451,11 @@ Here's the *Player* script. direction = direction.Normalized(); // Setting the basis property will affect the rotation of the node. GetNode("Pivot").Basis = Basis.LookingAt(direction); - GetNode("AnimationPlayer").PlaybackSpeed = 4; + GetNode("AnimationPlayer").SpeedScale = 4; } else { - GetNode("AnimationPlayer").PlaybackSpeed = 1; + GetNode("AnimationPlayer").SpeedScale = 1; } // Ground velocity