From 4c6e4e7d1ee1ccd1af164a93287f7b6b60509f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=2E=20Pe=C3=B1a?= <110504942+Charl-pena@users.noreply.github.com> Date: Fri, 3 May 2024 15:21:24 -0600 Subject: [PATCH] Update 2d_sprite_animation.rst Corrected the C# code from the example in the 'Controlling the animation' section, fixing the class name used by the generic method GetNode(), as well as the string parameter. --- tutorials/2d/2d_sprite_animation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/2d/2d_sprite_animation.rst b/tutorials/2d/2d_sprite_animation.rst index 267e01648..bce8da40d 100644 --- a/tutorials/2d/2d_sprite_animation.rst +++ b/tutorials/2d/2d_sprite_animation.rst @@ -101,7 +101,7 @@ released. public override void _Ready() { - _animatedSprite = GetNode("AnimatedSprite"); + _animatedSprite = GetNode("AnimatedSprite2D"); } public override _Process(float _delta)