Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion automated_updates_data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"last_automated_updates_commit": "ec5dc8937205cd8e1b9bdedb434a19da1b822613",
"last_automated_updates_commit": "1d1c11bfa6e6f507bb9d5df79ba442d1f8694397",
"last_improved_things": [
{
"date": "2026-02-16",
Expand Down
8 changes: 8 additions & 0 deletions docs/gdevelop5/events/foreach/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ For Each events can have a **loop counter variable**. When set, this variable st

To add a loop counter variable, right-click on the For Each event and choose **Add > Loop Counter Variable**.

## Ordering and limiting iterations

By default, a For Each event iterates over instances in an unspecified order. You can optionally sort the iteration by a numeric expression evaluated for each instance, and limit how many instances are processed.

In the event header, use the order dropdown to choose **(any order)** or **ordered by**, then enter an expression such as an object variable, a distance, or a behavior property. You can also choose **ascending** or **descending** order. A **limit** value can be set to stop iterating after a given number of instances.

This is useful, for example, to process only the 3 closest enemies, or to apply an action to the highest-health targets first.

## How to add this event

Right click (or long press) on an existing [event](/gdevelop5/events) and choose *"Add"* in the menu. Then, select the event you want to add.
Expand Down
11 changes: 11 additions & 0 deletions docs/gdevelop5/objects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ GDevelop offers a wide variety of objects, each designed for a specific use. Bel

![](pasted/20230221-180825.png)

## Importing objects from an asset pack file

You can import objects directly from a `.gdo` asset pack file into your scene. This is useful for bringing in objects from an asset pack you have downloaded or exported yourself.

To import objects:

1. Right-click on **Scene Objects** in the Objects panel.
2. Choose **Import assets**.
3. Select a `.gdo` file.
4. Pick which objects to import, then confirm.


## Choosing a name for your object

Expand Down