# Collision with csv tile

**URL:** <https://phaser.discourse.group/t/collision-with-csv-tile/2339>\
**Category:** Phaser 3\
**Created:** [May 3, 2019, 8:46pm UTC](https://phaser.discourse.group/t/collision-with-csv-tile/2339 "2019-05-03T20:46:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lteo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/lteo/32/1295_2.png) [@Lteo](https://phaser.discourse.group/u/Lteo)\
**Post date:** [May 3, 2019, 8:46pm UTC](https://phaser.discourse.group/t/collision-with-csv-tile/2339/1 "2019-05-03T20:46:58Z")

</div>

![Sem%20t%C3%ADtulo](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/1/15ed36b4a4e183736ad4a765261cc1df5e145edc.png)

There is no collision between the csv layer and the player, the code is the same as the example, but there is no collision, what is happening?

---

<div class="post-metadata">

**Author:** ![scottwestover](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/scottwestover/32/7442_2.png) [@scottwestover](https://phaser.discourse.group/u/scottwestover)\
**Post date:** [May 10, 2019, 5:06pm UTC](https://phaser.discourse.group/t/collision-with-csv-tile/2339/2 "2019-05-10T17:06:15Z")

</div>

By chance, did you happen to check the indexes you are using for layer? When you call the `setCollisionBetween` method, you will need to pass the range of indexes that are used in your Tilemap.

Reference: [https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.StaticTilemapLayer.html#setCollisionBetween\_\_anchor](https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.StaticTilemapLayer.html#setCollisionBetween__anchor)
