CHALLENGE 1: Setting Position and Scale on a Sprite2D ==================================================================== TASK ---- Add a Sprite2D to a scene with any image assigned to its texture. Write a script that sets its position to Vector2(200, 300) and its scale to Vector2(1.5, 1.5) in _ready(), and print the resulting position and scale. SOLUTION CODE (attached to the Sprite2D) -------------------------------------------- extends Sprite2D func _ready() -> void: position = Vector2(200, 300) scale = Vector2(1.5, 1.5) print("Position: ", position) print("Scale: ", scale) OUTPUT ------ Position: (200.0, 300.0) Scale: (1.5, 1.5) WHY THIS WORKS AS AN ANSWER ---------------------------- Because the script extends Sprite2D directly, position and scale are already available on it without needing to reach a separate parent node - Sprite2D inherits both properties from Node2D, exactly as the chapter describes. Setting position = Vector2(200, 300) moves the sprite 200 pixels right and 300 pixels down from the scene's own origin (remember: Y grows downward in Godot's 2D space, so 300 moves it down the screen, not up). Setting scale = Vector2(1.5, 1.5) makes it appear 50% larger in both directions than its original texture size. print() with a Vector2 argument automatically formats it as "(x, y)", which is why both lines print in that recognizable coordinate-pair shape.