|
@@ -254,6 +254,11 @@ Your complete ``sprite_2d.gd`` code should look like the following.
|
|
|
|
|
|
Run the scene now and click the button to see the sprite start and stop.
|
|
Run the scene now and click the button to see the sprite start and stop.
|
|
|
|
|
|
|
|
+.. note:: If you try to run your scene and you don't see the button you created, you may have
|
|
|
|
+ run the default scene by pressing :kbd:`F5` (:kbd:`Cmd + B` on macOS) rather than the
|
|
|
|
+ current scene by pressing :kbd:`F6` (:kbd:`Cmd + R` on macOS). Make sure you have the
|
|
|
|
+ ``node_2d`` scene selected and then press :kbd:`F6` (:kbd:`Cmd + R` on macOS).
|
|
|
|
+
|
|
Connecting a signal via code
|
|
Connecting a signal via code
|
|
----------------------------
|
|
----------------------------
|
|
|
|
|