How to use the same "object" in two scenes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GunPoint
:warning: Old Version Published before Godot 3 was released.

So i have a character (KinematicBody2D). There’s a camera attached to him, and to the camera is attached a UI.
When the player goes through a door, the scene switches.
In the new scene i want to have the same camera focused on the player and to have the same UI, with all the info about player (money, etc)
How i can do that?
(Sorry for my bad english)

:bust_in_silhouette: Reply From: rustyStriker

you can have a main scene( Game controller ) with the player as one child and the map itself as another child, that way the player will stay active and you can control the map that is displayed without going through much trouble…

another option is to instance the player for every scene and use global variables/another scene to pass the variables( aka health or whatever )

i found another way…
I will make another scene with the camera
Also, how i can make a global variable? The docs dont provide enough info

GunPoint | 2017-10-07 15:33