using GDSCRIPT (not C# etc)
I have root scene called "test level"
it has as children
Player
(a camera2d as a child of player)
HUD
COINS
(with coin1 coin2 etc. as a child of COINS)
Portal
(with green Portal and blue Portal as children of Portal)
The HUD displays the number of coins you have collected
when I use the green portal it takes you to another section of the screen
(i would like the green portal to delete HUD and load HUD2)
my code looks like this
func onGreenPortalbody_entered(body):
$SpongBob.position.x = 928
$SpongBob.position.y = -480
so in this code how do i delete HUD scene and add HUD2 scene