# Click to move on tilemap

**URL:** <https://phaser.discourse.group/t/click-to-move-on-tilemap/2178>\
**Category:** Phaser 3\
**Created:** [April 20, 2019, 7:56pm UTC](https://phaser.discourse.group/t/click-to-move-on-tilemap/2178 "2019-04-20T19:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [April 20, 2019, 10:46pm UTC](https://phaser.discourse.group/t/click-to-move-on-tilemap/2178/2 "2019-04-20T22:46:20Z")

</div>

Tilemap layers have methods which allow you to convert world coordinates of a given Camera to tile coordinates on the layer - [`worldToTileX`](https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.DynamicTilemapLayer.html#worldToTileX), [`worldToTileY`](https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.DynamicTilemapLayer.html#worldToTileY), and [`worldToTileXY`](https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.DynamicTilemapLayer.html#worldToTileXY). If you can figure out where on the world the player has clicked, you can figure out the position’s tile coordinates. Note that Pointers [can also give you world coordinates](https://photonstorm.github.io/phaser3-docs/Phaser.Input.Pointer.html#worldX).

---

_[View the full topic](https://phaser.discourse.group/t/click-to-move-on-tilemap/2178)._
