Browse Source

Merge pull request #8418 from a2937/fix/use-consistent-script-name

fix : use the earlier name of the player input script
Matthew 1 year ago
parent
commit
ba3973db19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/step_by_step/scripting_player_input.rst

+ 1 - 1
getting_started/step_by_step/scripting_player_input.rst

@@ -142,7 +142,7 @@ Here is the complete ``sprite_2d.gd`` file for reference.
 
 
     using Godot;
     using Godot;
 
 
-    public partial class Sprite : Sprite2D
+    public partial class MySprite2D : Sprite2D
     {
     {
         private float _speed = 400;
         private float _speed = 400;
         private float _angularSpeed = Mathf.Pi;
         private float _angularSpeed = Mathf.Pi;