|
@@ -6,6 +6,7 @@ func _process(delta):
|
|
|
for body in bodies:
|
|
|
print(body.get_name(), " is overlapping with me")
|
|
|
body.paint()
|
|
|
+ force_body_scan()
|
|
|
|
|
|
|
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
@@ -14,6 +15,10 @@ func _unhandled_input(event: InputEvent) -> void:
|
|
|
position = mouseMotion.position
|
|
|
|
|
|
|
|
|
+func force_body_scan() -> void:
|
|
|
+ set_position(get_position())
|
|
|
+
|
|
|
+
|
|
|
func _on_body_entered(body: Node2D) -> void:
|
|
|
print(body.get_name(), " entered in my area")
|
|
|
body.paint()
|