diff --git a/automated_updates_data.json b/automated_updates_data.json index c6d8df7148..7fd7afa239 100644 --- a/automated_updates_data.json +++ b/automated_updates_data.json @@ -1,5 +1,5 @@ { - "last_automated_updates_commit": "ec5dc8937205cd8e1b9bdedb434a19da1b822613", + "last_automated_updates_commit": "1d1c11bfa6e6f507bb9d5df79ba442d1f8694397", "last_improved_things": [ { "date": "2026-02-16", diff --git a/docs/gdevelop5/events/foreach/index.md b/docs/gdevelop5/events/foreach/index.md index 7328a762af..fdb61d4e1b 100644 --- a/docs/gdevelop5/events/foreach/index.md +++ b/docs/gdevelop5/events/foreach/index.md @@ -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. diff --git a/docs/gdevelop5/objects/index.md b/docs/gdevelop5/objects/index.md index f65094cda7..c1be2ee36a 100644 --- a/docs/gdevelop5/objects/index.md +++ b/docs/gdevelop5/objects/index.md @@ -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