Update a sprite from another scene in parallel

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?

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 are an easier way to communicate between scenes. Here’s a tutorial on doing just that:

And here are some examples from the set of Phaser 3 examples.

1 Like

Thanks!! It works

1 Like