Skip to content

Commit

Permalink
Improve phrasing of constants in GDScript basics (godotengine#4036)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
NathanLovato and Calinou authored Sep 18, 2020
1 parent ffe7ad0 commit 3f0a283
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions getting_started/scripting/gdscript/gdscript_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,12 @@ the scene tree::
Constants
~~~~~~~~~

Constants are similar to variables, but must be constants or constant
expressions and must be assigned on initialization.
Constants are values you cannot change when the game is running.
Their value must be known at compile-time. Using the
``const`` keyword allows you to give a constant value a name. Trying to assign a
value to a constant after it's declared will give you an error.

We recommend using constants whenever a value is not meant to change.

::

Expand Down

0 comments on commit 3f0a283

Please sign in to comment.