FallInGame

 avatar
TaktycznyBocian
plain_text
2 years ago
307 B
24
Indexable
extends Area2D

const ball_scene = preload('res://Game/Ball.tscn')

func _process(_delta):
	var ball = ball_scene.instance()
	var bodies = get_overlapping_bodies()
	for body in bodies:
		if body.is_in_group('Ball'):
			body.queue_free()
			get_tree().get_root().get_node('Level').add_child(ball)
Editor is loading...