map manager handling stickers, not root
This commit is contained in:
parent
e7729da740
commit
32811969ea
2 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,7 @@ func on_unhover():
|
||||||
func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
|
func on_grab(_offset:Vector2=Vector2(0.0,0.0)):
|
||||||
Sticker_mode = true
|
Sticker_mode = true
|
||||||
get_parent().top_level = true
|
get_parent().top_level = true
|
||||||
get_parent().reparent(get_tree().root)
|
get_parent().reparent(MapManager)
|
||||||
update_ChildNodes_visibilty(false)
|
update_ChildNodes_visibilty(false)
|
||||||
disable_ChildNodes_collisions(true)
|
disable_ChildNodes_collisions(true)
|
||||||
|
|
||||||
|
|
|
@ -203,6 +203,7 @@ _data = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="MapManager" type="Node2D"]
|
[node name="MapManager" type="Node2D"]
|
||||||
|
y_sort_enabled = true
|
||||||
script = ExtResource("1_p0vo1")
|
script = ExtResource("1_p0vo1")
|
||||||
InitialPlayer = ExtResource("2_fyjh8")
|
InitialPlayer = ExtResource("2_fyjh8")
|
||||||
InitialMap = ExtResource("2_qgqfi")
|
InitialMap = ExtResource("2_qgqfi")
|
||||||
|
|
Loading…
Reference in a new issue