6
« on: 2025-01-15, 14:15:12 »
Hello,
Quick Summary: Need help creating a two-row tile pattern where one row is offset. The two rows work separately but adding them together pattern breaks the intended layout. Is this possible with Corona Tile Map's custom mode?
---
I'm trying to create a custom tile pattern using Corona Tile Map's custom mode but running into some challenges with the pattern definition.
Pattern Description:
- Base tile size: 0.6m x 0.6m
- Pattern uses variations: 0.3x0.3m, 0.15x0.3m, 0.3x0.6m, 0.15x0.6m, 0.6x0.6m
I have posted an example from a recreation in Excel, showing the single pattern and how it repeats. (Image 1)
The intended pattern alternates between two rows:
1. Offset row (offset by 0.5):
- 0.3x0.3m, 0.6x0.3m, 0.3x0.3m, 0.15x0.3m (then repeats)
2. Non-offset row:
- 0.15x0.6m, 0.3x0.6m, 0.6x0.6m, 0.3x0.6m (then repeats)
What Works:
The non-offset row pattern works correctly with:
0 .25 1 | 0 .5 1 | 0 1 1 | 0 .5 1
This creates the correct sequence of tall tiles: narrow (0.15x0.6m), medium (0.3x0.6m), square (0.6x0.6m), medium (0.3x0.6m).
The offset row pattern also works alone as:
.5 .5 .5 | .5 1 .5 | .5 .5 .5 | .5 .25 .5
This creates the sequence of shorter tiles: square (0.3x0.3m), wide (0.6x0.3m), square (0.3x0.3m), narrow (0.15x0.3m).
The Challenge:
When trying to add the offset row pattern on its own row:
+ Attachments and other options
.5 .5 .5 | .5 1 .5 | .5 .5 .5 | .5 .25 .5 | 0 .25 1 | 0 .5 1 | 0 1 1 | 0 .5 1
The Tile Map appears to interpret the second part as a continuation of the same row rather than starting a new row in the pattern.
When combined, you can see it combines everything into one large row and repeats that pattern, rather than creating the intended alternating row pattern. (Image 2)
Question:
Is there a way to properly define this alternating row pattern in Corona Tile Map's custom mode? Or is this a limitation of how the custom pattern syntax works?
While this might be a limitation of the custom mode syntax, I feel like what I want might be possible using nested TileMaps or by generating both patterns separately and combining them with a simple mask differentiating rows (set to 1.2x1.2m) Edit: This will not work as it requires that one row to be 0.3m tall plus gap.
Thank you.