Collision not working after changing level

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bastilo

Hey guys, I have a big problem here. I have a Node “World” in my Game scene (and I can access it with “_world” in my code) and when I want to change the world node to another one I use this code:

_world.name = "OldWorld"
_world.queue_free()
var next_world = load(world_path).instance()
next_world.name = "World"
_world = next_world
add_child(_world)

This works, but after calling this method 2 times, the collision between my player (KinematicBody2D) and the world (TileMap) and also between my player and my enemies (also KinematicBody2D) are completely gone (but collisions between the player and Area2Ds are still working). How can I fix that?

:bust_in_silhouette: Reply From: bastilo

Found out that it works on a friends computer and on my pc in the browser. Seems to be an engine bug.