diff --git a/automated_updates_data.json b/automated_updates_data.json index 2fa8e494dbb..c73781581b9 100644 --- a/automated_updates_data.json +++ b/automated_updates_data.json @@ -1,5 +1,5 @@ { - "last_automated_updates_commit": "6a91e8b6fa95cbd044cbd768ef8cf34c0f952015", + "last_automated_updates_commit": "9ed644c8078de403483319422390cbae1e78719c", "last_improved_things": [ { "date": "2026-02-16", diff --git a/docs/gdevelop5/objects/tilemap/index.md b/docs/gdevelop5/objects/tilemap/index.md index 07ad41e657a..2745c3df378 100644 --- a/docs/gdevelop5/objects/tilemap/index.md +++ b/docs/gdevelop5/objects/tilemap/index.md @@ -128,6 +128,12 @@ You can then click **Apply** and drag'n'drop the object on the scene if it's not A platformer game often needs different kind of objects like platforms, jumpthru or ladders. One collision mask should be created for each kind. The example in the following screenshots can be opened in the online editor ([open the project](https://editor.gdevelop.io/?project=example://platformer-with-tilemap)). +### Enable collisions directly on the Tilemap object + +The Tilemap object can generate its own collision mask, without needing a separate object. In the object properties, enable **Enable collision** in the **Collision** section. The **Class filter** property lets you restrict the hitboxes to the tiles having a given class (set in Tiled 1.9+); leave it empty to use every tile with a class defined. + +Use a separate **Tilemap collision mask** object (described below) when you need several distinct masks (platforms, ladders, jumpthrus…) for the same tilemap. + ### Generating tilemap collision masks automatically !!! warning @@ -213,6 +219,10 @@ In GDevelop, you can choose the speed of the animation(s) of the Tilemap, which ![](pasted/20210104-112229.png) +## Tile manipulation at runtime + +Tiles of an External Tilemap can also be read and changed while the game is running, using actions and conditions to get, set, flip or remove a tile at scene or grid coordinates, and to resize the grid. Editing a tile updates the collisions accordingly when collisions are enabled. + ## Reference All actions, conditions and expressions are listed in [the tilemap reference page](/gdevelop5/all-features/tilemap/reference/).