# Reload scene

**URL:** <https://phaser.discourse.group/t/reload-scene/8069>\
**Category:** Phaser 3\
**Created:** [November 9, 2020, 2:09pm UTC](https://phaser.discourse.group/t/reload-scene/8069 "2020-11-09T14:09:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manz](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/manz/32/2658_2.png) [@Manz](https://phaser.discourse.group/u/Manz)\
**Post date:** [November 9, 2020, 2:09pm UTC](https://phaser.discourse.group/t/reload-scene/8069/1 "2020-11-09T14:09:30Z")

</div>

Hi,

I have a game (RPG style) with two scenes: game (menu) & room (level). My room scene preload external resources (tilemap, characters on map, assets, etc…). For start room all works fine.

My problem is on “exit tile” (for enter to other level). When player overlaps exit tile, fadeOut camera and stop & remove roomscene, change main data (currentLevel, and other data) and start again roomscene. However, I have problems:

- My first roomScene switch off correctly, but looks not completely deleted scene after `.remove(key)`.
- Looks that my new roomScene not starts (no error, not enter into preload and create methods).
- I have doubts for this preload assets system. Should I make different?

Some help? Thanks!

---

<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 9, 2020, 4:20pm UTC](https://phaser.discourse.group/t/reload-scene/8069/2 "2020-11-09T16:20:29Z")

</div>

I’m not sure, but try [phaser-plugin-scene-watcher](https://github.com/samme/phaser-plugin-scene-watcher).

> [@Manz](#):
>
> When player overlaps exit tile, fadeOut camera and stop & remove roomscene, change main data (currentLevel, and other data) and start again roomscene.

Code for this?

You can preload assets earlier, before the room scene.

---

<div class="post-metadata">

**Author:** ![Manz](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/manz/32/2658_2.png) [@Manz](https://phaser.discourse.group/u/Manz)\
**Post date:** [November 9, 2020, 5:40pm UTC](https://phaser.discourse.group/t/reload-scene/8069/3 "2020-11-09T17:40:28Z")

</div>

Fantastic plugin!

I will try with this plugin for debug.

Thanks!

---

<div class="post-metadata">

**Author:** ![Manz](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/manz/32/2658_2.png) [@Manz](https://phaser.discourse.group/u/Manz)\
**Post date:** [November 9, 2020, 7:13pm UTC](https://phaser.discourse.group/t/reload-scene/8069/4 "2020-11-09T19:13:11Z")

</div>

Very thanks, @samme.

With scene watcher, I see that first scene don’t run. I use “start” instead “launch” and stop first scene also (and other minor errors).

Very useful this plugin, thanks!

Fixed!! 😃

---

<div class="post-metadata">

**Author:** ![rudyardcatling](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rudyardcatling](https://phaser.discourse.group/u/rudyardcatling)\
**Post date:** [November 12, 2020, 1:04am UTC](https://phaser.discourse.group/t/reload-scene/8069/5 "2020-11-12T01:04:13Z")

</div>

i doubt i can surpass the mighty samme lol, im not sure what to say since theres no code, just 🙂  
afaik : launch should stop the current scene in one go , you can load all assets for the whole game in the first scene, i tend to use a loader for that (separate scene) as they stay available through the whole session, and dont bother with loading any afterwards (unless you’re memory nitpicking for mobile only stuff) and if you really need a clear javascript can window.location.reload (its rusty but i think if you reload to ‘.’ or use an absolute url it will give you your opening screen. That’s like hard-resetting your virtual system (-\> window/tab) and all the garbage should be out even if phaser forgot something.

anyway

good luck 😃
