# Camera and Pointer X,Y

**URL:** <https://phaser.discourse.group/t/camera-and-pointer-x-y/6476>\
**Category:** Phaser 3\
**Created:** [May 28, 2020, 10:09am UTC](https://phaser.discourse.group/t/camera-and-pointer-x-y/6476 "2020-05-28T10:09:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackBruno](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jackbruno/32/3459_2.png) [@JackBruno](https://phaser.discourse.group/u/JackBruno)\
**Post date:** [May 28, 2020, 10:09am UTC](https://phaser.discourse.group/t/camera-and-pointer-x-y/6476/1 "2020-05-28T10:09:16Z")

</div>

I got a 600x500 screen and 1807x474 background image  
I wanted to get the X and Y of the pointer outside of the camera since it only maxed to x: 600 and y: 500(Camera) and I wanted to get the 1000+ X pos for my game.

**Create:**

```
this.input.on('pointerdown', function(pointer){
	console.log("X: " + pointer.x + " Y: " + pointer.y);	    	
}.bind(this));

var cursors = this.input.keyboard.createCursorKeys();

var controlConfig = {
camera: this.cameras.main,
left: cursors.left,
right: cursors.right,
acceleration: 0.06,
drag: 0.0005,
maxSpeed: 1.0
};

this.controls = new Phaser.Cameras.Controls.SmoothedKeyControl(controlConfig);

```

**UPDATE:**

`this.controls.update(delta);`

I hope you all get my point.

---

<div class="post-metadata">

**Author:** ![JackBruno](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jackbruno/32/3459_2.png) [@JackBruno](https://phaser.discourse.group/u/JackBruno)\
**Post date:** [May 28, 2020, 10:35am UTC](https://phaser.discourse.group/t/camera-and-pointer-x-y/6476/2 "2020-05-28T10:35:18Z")

</div>

Solved it using:  
`this.input.activePointer.worldX` and `this.input.activePointer.worldY`
