# Phaser3 Multi Levels

**URL:** <https://phaser.discourse.group/t/phaser3-multi-levels/4257>\
**Category:** Phaser 3\
**Created:** [November 14, 2019, 3:39pm UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257 "2019-11-14T15:39:00Z")\
**Posts on this page:** 6\
**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 14, 2019, 3:39pm UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/1 "2019-11-14T15:39:00Z")

</div>

For multiple level using different scenes, can I use back the SAME this.player or this.map or should I use a different this instead ??

Thanks

---

<div class="post-metadata">

**Author:** ![ptaku19](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ptaku19/32/2170_2.png) [@ptaku19](https://phaser.discourse.group/u/ptaku19)\
**Post date:** [November 14, 2019, 7:52pm UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/2 "2019-11-14T19:52:56Z")

</div>

What?

---

<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 15, 2019, 12:36am UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/3 "2019-11-15T00:36:19Z")

</div>

Can I use back the same variable on different levels on different scenes ??

---

<div class="post-metadata">

**Author:** ![smjn](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/smjn/32/2087_2.png) [@smjn](https://phaser.discourse.group/u/smjn)\
**Post date:** [November 15, 2019, 7:17am UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/4 "2019-11-15T07:17:11Z")

</div>

Yes, there are many ways to do this. The easiest and always working solution, regardless of how you have designed your code, is to use the data registry in phaser. Each scene and also the game has a data registry. Use the game registry and you can fetch the data directly from any scene.

Here is an example [http://labs.phaser.io/edit.html?src=src/scenes\registry%20data%20exchange%20es6.js](http://labs.phaser.io/edit.html?src=src/scenes%5Cregistry%20data%20exchange%20es6.js)

Search on labs for more examples.

---

<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 15, 2019, 3:18pm UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/5 "2019-11-15T15:18:49Z")

</div>

Thanks…

Or should I have a preload Scenes and load up ALL the required assets from a single scene files and remove the redundant preload in each and every levels …

---

<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 15, 2019, 9:22pm UTC](https://phaser.discourse.group/t/phaser3-multi-levels/4257/6 "2019-11-15T21:22:09Z")

</div>

This uses one boot (preload) scene and the data registry:

> **[samme/cavern-quest](https://github.com/samme/cavern-quest/tree/master/src/app)**
>
> Phaser scenes demo. Contribute to samme/cavern-quest development by creating an account on GitHub.
