jcs Posted February 7, 2014 Share Posted February 7, 2014 calling putTile() calls calculateFaces(), but this does not set the collision information on the existing tiles which means that once you change a tile to a value that collides differently the face information for the map is broken - sprites can get 'inside' the faces etc entered github issue #371 Link to comment Share on other sites More sharing options...
brejep Posted February 19, 2014 Share Posted February 19, 2014 I was having this problem too. Although having used the fill method to change tiles instead of putTile. I found that if I made another call to setCollision after making the change then the collisions would work correctly. So something like: tilemap.fill(1, 0, 0, 10, 10, 'ground_layer');tilemap.setCollision(1, true, 'ground_layer'); Link to comment Share on other sites More sharing options...
Recommended Posts