For some reason my second scene overlaps my first scene during scene transition and all collisions remain from first scene. Im a beginner please help
export(String, FILE) var nextscenepath = ""
export(Vector2) var playerspawnlocation = Vector2.ZERO
func getconfigurationwarning() -> String:
if nextscenepath == "":
return "nextscene path must be set for portal to work"
Global.playerinitialmapposition = playerspawnlocation
if gettree().changescene(nextscenepath) == OK: