# I get double image when re-enter a scene

**URL:** <https://phaser.discourse.group/t/i-get-double-image-when-re-enter-a-scene/10690>\
**Category:** Phaser 3\
**Created:** [November 20, 2021, 1:48am UTC](https://phaser.discourse.group/t/i-get-double-image-when-re-enter-a-scene/10690 "2021-11-20T01:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stanleyseow](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/stanleyseow/32/1190_2.png) [@stanleyseow](https://phaser.discourse.group/u/stanleyseow)\
**Post date:** [November 20, 2021, 1:48am UTC](https://phaser.discourse.group/t/i-get-double-image-when-re-enter-a-scene/10690/1 "2021-11-20T01:48:02Z")

</div>

I have been issue I have been trying to trying to solve for a long time…

When I re-enter a scene, I get **double image,** or delay movement …see both the videos  
This is a simple multiplayer game that will send movement to [socket.io](http://socket.io) to be send to other players.

Can someone gimme some hints on to why this happens or how to resolve it ??

Thanks

I have been reading on how the scene works and something about existing scenes are not _garbage collection_ after exited the scenes …

[https://github.com/jdotrjs/phaser-guides/blob/master/Basics/Part3.md](https://github.com/jdotrjs/phaser-guides/blob/master/Basics/Part3.md)

> One potentially surprising behavior is that once a scene has been shut down it is not garbage collected but, rather, can be resumed via `start()` . When this happens the three creation functions get called once more. This means any state tracked in the scene class will be retained between a stopped state and the next create state. As a result special care must be taken to set a known initial value on everything requiring one.

[![](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/d/d5add09c4abbb811f4897e01fd1502701e234ba1.jpeg)](https://flic.kr/p/2mKJWyq)[video-1637371702](https://flic.kr/p/2mKJWyq) by [stanley\_seow](https://www.flickr.com/photos/stanleyseow/), on Flickr

[![](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/b/b0fe5079dff6012095c4a52552f0b94414dc802d.jpeg)](https://flic.kr/p/2mKTBMs)[double image2](https://flic.kr/p/2mKTBMs) by [stanley\_seow](https://www.flickr.com/photos/stanleyseow/), on Flickr

---

<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:** [November 20, 2021, 5:59pm UTC](https://phaser.discourse.group/t/i-get-double-image-when-re-enter-a-scene/10690/2 "2021-11-20T17:59:54Z")

</div>

If you’re adding socket event listeners when starting the scene you need to remove them when stopping/restarting the scene.

---

<div class="post-metadata">

**Author:** ![stanleyseow](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/stanleyseow/32/1190_2.png) [@stanleyseow](https://phaser.discourse.group/u/stanleyseow)\
**Post date:** [November 28, 2021, 5:29pm UTC](https://phaser.discourse.group/t/i-get-double-image-when-re-enter-a-scene/10690/3 "2021-11-28T17:29:45Z")

</div>

Thank you , the solution was spot on !!!
