This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by Robodude

The project I'm working on requires entities (the red triangle in the upper left) to be tied to the correct collision map sloped tile. Right now, I manually placed the collision triangle in the right spot within WM to make the 'effect' work.

/><br />
<br />
Can I create a second, dynamic,CollisionMap in addition to the one created in WM?<br />
<br />
According to the doc for the CollisonMap contructor: <br />
<br />
data: A 2D Array (Array of Arrays) indicating where to draw which tile from the Tileset.
</pre><br />
How do I know which tile from the tileset the number in the array corresponds to? This is referring to the pink collision tileset, correct?<br />
<br />
Thanks!			</div>
			<div class=

1 decade ago by StuartTresadern

Hi, The collision tiles are numbered the same as all other tilesheets, starting at 1 from the top left , increment by one from left to right top to bottom). 0 = no tile.

You can use getTile and setTile to read and change the value: just pass in the tile number you want with setTile and then set the tile back to 0 to remove it.

1 decade ago by Robodude

Awesome! Thank you very much :)
Page 1 of 1
« first « previous next › last »