Skip to content

Commit

Permalink
Automatic update of the reference pages [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
GDevelop documentation CI committed May 21, 2024
1 parent db17080 commit 01035ec
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 4 deletions.
12 changes: 10 additions & 2 deletions docs/gdevelop5/all-features/expressions-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,16 @@ Actions, conditions and expressions to handle variables, from simple variables l
| | _🗄️ Scene variable_ | Array variable |
| `Variable(scene variable)` | Number value of a scene variable ||
| | _🗄️ Scene variable_ | Variable |
| `VariableChildCount(scene variable)` | Number of children in a scene array or structure variable ||
| | _🗄️ Scene variable_ | Array or structure variable |
| `VariableChildCount(variable)` | Number of children in a scene array or structure variable ||
| | _🗄️ Any variable_ | Array or structure variable |
| `VariableFirstNumber(variable)` | Get the value of the first element of an array variable, if it is a number. ||
| | _🗄️ Any variable_ | Array variable |
| `VariableFirstString(variable)` | Get the value of the first element of an array variable, if it is a text (string). ||
| | _🗄️ Any variable_ | Array variable |
| `VariableLastNumber(variable)` | Get the value of the last element of an array variable, if it is a number. ||
| | _🗄️ Any variable_ | Array variable |
| `VariableLastString(variable)` | Get the value of the last element of an array variable, if it is a text (string). ||
| | _🗄️ Any variable_ | Array variable |
| `VariableString(scene variable)` | Text of a scene variable ||
| | _🗄️ Scene variable_ | Variable |

Expand Down
27 changes: 27 additions & 0 deletions docs/gdevelop5/all-features/object/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ Remove a child from an object structure variable.
**Pause an object timer**
Pause an object timer.

**Add boolean variable**
Adds a boolean to the end of an object array variable.

**Add variable array value**
Adds a number to the end of an object array variable.

**Add text variable**
Adds a text (string) to the end of an object array variable.

**Delete an object timer**
Delete an object timer from memory.

Expand All @@ -175,6 +184,9 @@ to avoid slowing down the game.
**Angle**
Change the angle of rotation of an object (in degrees).

**Change boolean variable**
Modify the boolean value of an object variable.

**Center position**
Change the position of an object, using its center.

Expand All @@ -187,9 +199,15 @@ Change the Y position of the center of rotation.
**Include in parent collision mask**
Include or exclude a child from its parent collision mask.

**Change variable value**
Modify the number value of an object variable.

**Change boolean variable**
Modify the boolean value of an object variable.

**Change text variable**
Modify the text of an object variable.

**Toggle boolean variable**
Toggles the boolean value of an object variable.
If it was true, it will become false, and if it was false it will become true.
Expand All @@ -208,6 +226,9 @@ Check if an object is not moving
**Behavior activated**
Check if the behavior is activated for the object.

**Boolean variable**
Compare the boolean value of an object variable.

**Bounding box bottom position**
Compare the bounding box (the area encapsulating the object) bottom position.

Expand Down Expand Up @@ -244,6 +265,9 @@ Compare the angle of movement of an object according to the forces applied on it
**Current layer**
Check if the object is on the specified layer.

**Variable value**
Compare the number value of an object variable.

**Object timer paused**
Test if specified object timer is paused.

Expand All @@ -265,6 +289,9 @@ Compare the X position of the object.
**Y position**
Compare the Y position of an object.

**Text variable**
Compare the text of an object variable.

**Number variable**
Compare the number value of an object variable.

Expand Down
57 changes: 55 additions & 2 deletions docs/gdevelop5/all-features/variables/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Actions, conditions and expressions to handle variables, from simple variables l

## Actions

**Clear children**
Remove all the children from the structure or array variable.

**Clear children**
Remove all the children from the global structure or array variable.

Expand Down Expand Up @@ -37,6 +40,24 @@ Modify the number value of a scene variable.
**Change text variable**
Modify the text (string) of a scene variable.

**Add boolean variable**
Adds a boolean at the end of an array variable.

**Add variable array value**
Adds a number at the end of an array variable.

**Add text variable**
Adds a text (string) at the end of a array variable.

**Add existing variable**
Adds an existing variable at the end of an array variable.

**Remove variable by index**
Removes a variable at the specified index of an array variable.

**Remove a child**
Remove a child from a structure variable.

**Add existing variable**
Adds an existing variable at the end of a scene array variable.

Expand All @@ -52,12 +73,21 @@ Adds a text (string) at the end of a scene array variable.
**Remove variable by index**
Removes a variable at the specified index of a scene array variable.

**Change boolean variable**
Modify the boolean value of a variable.

**Change boolean variable**
Modify the boolean value of a global variable.

**Change variable value**
Modify the number value of a variable.

**Change boolean variable**
Modify the boolean value of a scene variable.

**Change text variable**
Modify the text (string) of a variable.

**Toggle boolean variable**
Toggle the boolean value of a global variable.
If it was true, it will become false, and if it was false it will become true.
Expand All @@ -74,6 +104,9 @@ Remove a child from a scene structure variable.

## Conditions

**Variable value**
Compare the boolean value of a variable.

**Boolean variable**
Compare the boolean value of a global variable.

Expand All @@ -83,12 +116,18 @@ Compare the number of children in a global array variable.
**Child existence**
Check if the specified child of the global structure variable exists.

**Variable value**
Compare the number value of a variable.

**Boolean variable**
Compare the boolean value of a scene variable.

**Number of children**
Compare the number of children in a scene array variable.

**Variable value**
Compare the text (string) of a variable.

**Number variable**
Compare the number value of a global variable.

Expand All @@ -101,9 +140,15 @@ Compare the number value of a scene variable.
**Text variable**
Compare the text (string) of a scene variable.

**Number of children**
Compare the number of children in an array variable.

**Child existence**
Check if the specified child of the scene structure variable exists.

**Child existence**
Check if the specified child of the structure variable exists.

## Expressions

| Expression | Description | |
Expand Down Expand Up @@ -132,8 +177,16 @@ Check if the specified child of the scene structure variable exists.
| | _🗄️ Scene variable_ | Array variable |
| `Variable(scene variable)` | Number value of a scene variable ||
| | _🗄️ Scene variable_ | Variable |
| `VariableChildCount(scene variable)` | Number of children in a scene array or structure variable ||
| | _🗄️ Scene variable_ | Array or structure variable |
| `VariableChildCount(variable)` | Number of children in a scene array or structure variable ||
| | _🗄️ Any variable_ | Array or structure variable |
| `VariableFirstNumber(variable)` | Get the value of the first element of an array variable, if it is a number. ||
| | _🗄️ Any variable_ | Array variable |
| `VariableFirstString(variable)` | Get the value of the first element of an array variable, if it is a text (string). ||
| | _🗄️ Any variable_ | Array variable |
| `VariableLastNumber(variable)` | Get the value of the last element of an array variable, if it is a number. ||
| | _🗄️ Any variable_ | Array variable |
| `VariableLastString(variable)` | Get the value of the last element of an array variable, if it is a text (string). ||
| | _🗄️ Any variable_ | Array variable |
| `VariableString(scene variable)` | Text of a scene variable ||
| | _🗄️ Scene variable_ | Variable |

Expand Down

0 comments on commit 01035ec

Please sign in to comment.