2D Sidescroller Support - 2.1.0 Release Notes
The main goal of this release was to make support with sidescroll view games that use tilemaps with the build system. Because in a side-scrolling view, objects are usually tied to the ground or walls around them, adding a new ValidPlacementTileRule was needed. With this rule you can define the custom_data that a tile must have in order to be considered buildable / placeable. You can define this however you want (it uses a gdscript dictionary so the value types are not limited) but a straighforward example would be a boolean "buildable" and the value must be set to true.
Shortly after this release, I will have a video tutorial showing the changes and how to make the system work with sidescrolling / metroidvania games.
What's New
- Works with Sidescrolling View 2D Tilemaps
- Added a new rule ValidPlacementTileRule. By setting custom data on tileset tiles, you can mark a tile for being able to be placed on or near. For instance, you can check tiles under the preview object to see if there is buildable ground before allowing placement.
- TileCollisionIndicators are now set for NoCollisionsRule and ValidPlacementTileRule individually. You can set different templates up for each one.
- TileCollisionIndicatorManager now handles the creation of tile indicators (using templates defined in NoCollisionsRule and ValidPlacementTileRule). Only one indicator will be created for each tile but you can have different masks on each template to change where one template will be instanced over the preview object collision shapes. For instance, a indicator targeting layer 11 will have indicators made for CollisionObject2D that have layer 11 in the placement preview object scene.
Update Guide 2.0.1 -> 2.1.0 ~ Important Code Changes
- TileCollisionIndicators templates are set in the rules that use them (NoCollisionsRule, ValidPlacementTileRule). This lets you set different templates for different rules encase you want changes like different sprite graphics.
- Z-Index is no longer set by the build system but can be defined in each TileCollisionIndicator template for how far above or below other 2d objects you want the indicators to display
- colliding_nodes & positions_in_collision & positions_in_collision_count properties of building system are deprecated & moved to tci_manager (TileCollisionsIndicatorManager).
Files
Get Grid Building Plugin for Godot 4
Grid Building Plugin for Godot 4
Place Anything with Rotate, Flip, Stacking, and Drag Build
Status | In development |
Category | Assets |
Author | Chris' Tutorials |
Tags | 2D, City Builder, Godot, godot4, Metroidvania, Side Scroller, Tilemap, Top-Down, User Interface (UI) |
More posts
- 4.1.0 Manipulate with Move & Demolish Modes61 days ago
- Upcoming Grid Builder Updates for Godot 4.389 days ago
- 4.0.3 Compatibility Fix for Godot 4.2.2Jun 09, 2024
- 4.0.2 Small Enhancements & Bug FixesJun 09, 2024
- 4.0.1 File Path HotfixJun 07, 2024
- 4.0.0 - Shared BuildingState, Save / Load HelperJun 07, 2024
- 3.2.2 Bug FixesMar 06, 2024
- 3.2.1 - Input Mapping UpdatesJan 27, 2024
- 3.2.0 - Isometric Tilemap SupportJan 20, 2024
Leave a comment
Log in with itch.io to leave a comment.