diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index 5f69a3a62..32d973347 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -1721,9 +1721,9 @@ the :ref:`Signal.connect() ` method:: ... func _on_Character_health_changed(old_value, new_value): if old_value > new_value: - progress_bar.modulate = Color.red + progress_bar.modulate = Color.RED else: - progress_bar.modulate = Color.green + progress_bar.modulate = Color.GREEN # Imagine that `animate` is a user-defined function that animates the # bar filling up or emptying itself.