Difference between revisions of "TileMap:shift"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Shifts the tile map to change tile's graphic. The arguments are in tiles, not in pixels. By shifting t...")
 
Line 5: Line 5:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= TileMap:shift(dxdy,)
+
TileMap:shift(dx,dy)
 
</source>
 
</source>
'''dx:''' (number) The x amount of shift in tiles ''''''<br/>
+
'''dx''': (number) The x amount of shift in tiles ''''''<br/>
'''dy:''' (number) The y amount of shift in tiles ''''''<br/>
+
'''dy''': (number) The y amount of shift in tiles ''''''<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description

Shifts the tile map to change tile's graphic. The arguments are in tiles, not in pixels. By shifting the tile map one by one as needed, you can create dynamic tile maps.

 TileMap:shift(dx,dy)

'dx: (number) The x amount of shift in tiles '
'dy: (number) The y amount of shift in tiles '