[Tutorial] Position relative to executed scene

Godot Version

v4.3.stable.mono.official [77dcf97d8]

Question

I am programming in C# and doing this tutorial . I instantieted first scene in second scene, added button for toggling motion, attached script to Sprite2D. In first scene I placed my sprite in the middle of viewport (not at position 0,0). Now when I run it, it looks like it rotates my whole first scene, not just the sprite. I resolved this problem by placing my sprite at position 0,0 in first scene, but is there a other way so the calculation of position is relative to a place where sprite is located in executed scene?

Sounds like you attached the script to the root Node2D instead of the Sprite2D.