# Update a sprite from another scene in parallel

**URL:** <https://phaser.discourse.group/t/update-a-sprite-from-another-scene-in-parallel/10402>\
**Category:** Phaser 3\
**Created:** [October 11, 2021, 9:15pm UTC](https://phaser.discourse.group/t/update-a-sprite-from-another-scene-in-parallel/10402 "2021-10-11T21:15:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bananedansunjeu](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/bananedansunjeu/32/5822_2.png) [@Bananedansunjeu](https://phaser.discourse.group/u/Bananedansunjeu)\
**Post date:** [October 11, 2021, 9:15pm UTC](https://phaser.discourse.group/t/update-a-sprite-from-another-scene-in-parallel/10402/1 "2021-10-11T21:15:10Z")

</div>

Hi all,

I have a problem. I would like to update a sprite from another scene in parallel. however, the object is undefined. How can I do it?

---

<div class="post-metadata">

**Author:** ![StinOfSin](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/stinofsin/32/5625_2.png) [@StinOfSin](https://phaser.discourse.group/u/StinOfSin)\
**Post date:** [October 11, 2021, 9:57pm UTC](https://phaser.discourse.group/t/update-a-sprite-from-another-scene-in-parallel/10402/2 "2021-10-11T21:57:29Z")

</div>

Can you post a sample of the code attempting to do this?

You can access a separate scene from within a scene using `this.scene.get(key)`.

Note that if the remotely-accessed scene has not launched yet, any objects you try to access on it will not exist yet.

You may also find that [events](https://photonstorm.github.io/phaser3-docs/Phaser.Events.EventEmitter.html) are an easier way to communicate between scenes. Here’s a tutorial on doing just that:

> **[How to Communicate Between Scenes in Phaser 3](https://blog.ourcade.co/posts/2020/phaser3-how-to-communicate-between-scenes/)**
>
> Use events to pass data between Scenes for decoupled code

And [here are some examples](http://phaser.io/examples/v3/category/events) from the set of Phaser 3 examples.

---

<div class="post-metadata">

**Author:** ![Bananedansunjeu](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/bananedansunjeu/32/5822_2.png) [@Bananedansunjeu](https://phaser.discourse.group/u/Bananedansunjeu)\
**Post date:** [October 11, 2021, 10:03pm UTC](https://phaser.discourse.group/t/update-a-sprite-from-another-scene-in-parallel/10402/3 "2021-10-11T22:03:45Z")

</div>

Thanks!! It works
