# setScrollFactor makes objects to disappear

**URL:** <https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026>\
**Category:** Phaser 3\
**Created:** [March 3, 2021, 11:25am UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026 "2021-03-03T11:25:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kerubi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kerubi/32/4917_2.png) [@Kerubi](https://phaser.discourse.group/u/Kerubi)\
**Post date:** [March 3, 2021, 11:25am UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/1 "2021-03-03T11:25:14Z")

</div>

I want some of my game objects follow the camera (fixed to camera) but when ever I set the setScrollFactor like:  
this.add.image(3070, 2700, “flame\_big\_1”).setScrollFactor(0);  
the image will disappear from the screen. It appears again in the game over scene but is not visible during the game. Any idea why this is happening?

---

<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:** [March 3, 2021, 4:40pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/2 "2021-03-03T16:40:26Z")

</div>

(3070, 2700) would be pretty far down unless it’s a huge game canvas.

---

<div class="post-metadata">

**Author:** ![Kerubi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kerubi/32/4917_2.png) [@Kerubi](https://phaser.discourse.group/u/Kerubi)\
**Post date:** [March 3, 2021, 6:31pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/3 "2021-03-03T18:31:20Z")

</div>

Yes the canvas is 3200 \* 3200 so it is inside that. The same happens with my timer. It works fine but I would like it to be fixed to camera but it disappears when I use setScrollFactor. I think I have very special problems that no one else has.

---

<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:** [March 3, 2021, 6:37pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/4 "2021-03-03T18:37:28Z")

</div>

Change (x, y) until it appears? Toward (0, 0).

---

<div class="post-metadata">

**Author:** ![Kerubi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kerubi/32/4917_2.png) [@Kerubi](https://phaser.discourse.group/u/Kerubi)\
**Post date:** [March 3, 2021, 6:50pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/5 "2021-03-03T18:50:04Z")

</div>

Thanks, that really works. What’s the secret of that.

---

<div class="post-metadata">

**Author:** ![Kerubi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kerubi/32/4917_2.png) [@Kerubi](https://phaser.discourse.group/u/Kerubi)\
**Post date:** [March 3, 2021, 6:52pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/6 "2021-03-03T18:52:27Z")

</div>

It is now in the center on the camera but I would try to set in the bottom right. There might be setting for that.

---

<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:** [March 3, 2021, 8:54pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/7 "2021-03-03T20:54:53Z")

</div>

Is the whole game canvas (3200 × 3200) even visible in the browser window?

---

<div class="post-metadata">

**Author:** ![Kerubi](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kerubi/32/4917_2.png) [@Kerubi](https://phaser.discourse.group/u/Kerubi)\
**Post date:** [March 3, 2021, 9:22pm UTC](https://phaser.discourse.group/t/setscrollfactor-makes-objects-to-disappear/9026/8 "2021-03-03T21:22:37Z")

</div>

I have this.cameras.main.setZoom(2.5); and the player is wandering in a labyrinth. I managed now to set the timer coordinates so that it is rendered now on the right bottom corner. Thak you very much!
