Skip to content
Wolf-Infinite edited this page Jan 20, 2013 · 1 revision

A dynamic stamp is a composite stamp made out of 9 areas, each containing tiles. In this construction, the corners are static while the sides and center can be stretched.

+--+----+------+
|TL|T   |TR    |
|  |    |      |
+--+----+------+
|L |C   |R     |
|  |    |      |
|  |    |      |
|  |    |      |
+--+----+------+
|BL|B   |BR    |
|  |    |      |
|  |    |      |
|  |    |      |
+--+----+------+

In this dynamic stamp, by default, each of the 9 table cells has a width and height (expressed in the number of tiles).

The minimum width of this example is 2+0+6=8 and the minimum height is 2+0+4=6. TL, TR, BL and BR will always keep their size. C can be stretched horizontally and vertically, while L and R can only be stretched vertically and T and B can only be stretched horizontally. The L, C, R, T and B areas can be reduced to 0; the minimum size of the dynamic stamp, the corners will always retain their size. The term stretching is visually not entirely correct. The height and width can be stretched, but this is realised by repeating tiles in a circular/wrap-around way.

Original 3x3-tiles pattern:

123
456
789

Stretched to 8x10:

12312312
45645645
78978978
12312312
45645645
78978978
12312312
45645645
78978978
12312312

Stretched to 2x2:

12
45

Applying this dynamic stamp in a stamp-based map editor requires 5 parameters per stamp:

  • x - the x placement position in the map, or in a map room
  • y - the y placement position in the map, or in a map room
  • width - the width of the dynamic stamp
  • height - the height of the dynamic stamp
  • id - the id of the dynamic stamp
Defining such a stamp could be done in any regular map editor, it requires four extra points to set prior to 'grabbing' the stamp.
Clone this wiki locally