Skip to content

Commit

Permalink
move “2nd_go” far away at runtime instead
Browse files Browse the repository at this point in the history
  • Loading branch information
AmossGuy committed Feb 4, 2023
1 parent 2c93560 commit ce38c3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion level1.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ rotation = 0.392699
position = Vector2( 2072, -520 )

[node name="2nd_go" type="Node2D" parent="."]
position = Vector2( 2.14748e+09, 2.14748e+09 )
__meta__ = {
"_edit_lock_": true
}
Expand Down
3 changes: 3 additions & 0 deletions renovate_area.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ extends Area2D
export(NodePath) var removed
export(NodePath) var added

func _ready():
get_node(added).position = Vector2(INF, INF)

func _on_renovate_area_body_entered(body):
if body.is_class("ball"):
get_node(removed).queue_free()
Expand Down

0 comments on commit ce38c3b

Please sign in to comment.