# Convert screen coords to phaser world coords

**URL:** <https://phaser.discourse.group/t/convert-screen-coords-to-phaser-world-coords/13974>\
**Category:** Phaser 3\
**Created:** [February 11, 2024, 4:54pm UTC](https://phaser.discourse.group/t/convert-screen-coords-to-phaser-world-coords/13974 "2024-02-11T16:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmToDev](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@EmToDev](https://phaser.discourse.group/u/EmToDev)\
**Post date:** [February 11, 2024, 4:54pm UTC](https://phaser.discourse.group/t/convert-screen-coords-to-phaser-world-coords/13974/1 "2024-02-11T16:54:44Z")

</div>

Hi everyone, I’m currently developing a game on phaser 3 a nd now I need to read the global cursor movement, not just on the game canvas to avoid weird problems. I already tried to use camera.getWorldPoint in conjunction with reading mouse coords from document.onmousemove events, but it did not give the desired result.  
So, is there any way to convert screen coords to world coords or simply make the pointermove event work outside the game canvas as well?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [February 13, 2024, 1:58pm UTC](https://phaser.discourse.group/t/convert-screen-coords-to-phaser-world-coords/13974/2 "2024-02-13T13:58:43Z")

</div>

👋

```js
new Phaser.Game({
  input: { mouse: { target: window } },
  // etc.
});

```
