# How do I change the position of the sprites to suit different screens?

**URL:** <https://phaser.discourse.group/t/how-do-i-change-the-position-of-the-sprites-to-suit-different-screens/10607>\
**Category:** Phaser 3\
**Created:** [November 6, 2021, 6:08pm UTC](https://phaser.discourse.group/t/how-do-i-change-the-position-of-the-sprites-to-suit-different-screens/10607 "2021-11-06T18:08:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignasi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ignasi/32/5813_2.png) [@ignasi](https://phaser.discourse.group/u/ignasi)\
**Post date:** [November 6, 2021, 6:08pm UTC](https://phaser.discourse.group/t/how-do-i-change-the-position-of-the-sprites-to-suit-different-screens/10607/1 "2021-11-06T18:08:45Z")

</div>

How can I change the x and y coordinates of the sprites to fit the size of the screen in relation to it?

---

<div class="post-metadata">

**Author:** ![as3mbus](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/as3mbus/32/3328_2.png) [@as3mbus](https://phaser.discourse.group/u/as3mbus)\
**Post date:** [November 7, 2021, 10:41am UTC](https://phaser.discourse.group/t/how-do-i-change-the-position-of-the-sprites-to-suit-different-screens/10607/2 "2021-11-07T10:41:42Z")

</div>

what i usually did is by placing it based on width and height of phaser scale manager

example :

```javascript
const img = scene.add.image(...)
img.setPosition(scene.scale.witdh * .5, scene.scale.height * .5)
// this will place object at center of the screen (affected by origin)

```
