Collectable works
This commit is contained in:
parent
d358b436df
commit
9d239f5367
|
@ -1,6 +1,8 @@
|
|||
extends Area2D
|
||||
|
||||
func _ready():
|
||||
print("ready")
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if body.name == "player":
|
||||
print("meow")
|
||||
self.queue_free()
|
||||
print("meow")
|
||||
|
|
|
@ -18,8 +18,7 @@ animations = [{
|
|||
radius = 17.0
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
collision_layer = 0
|
||||
script = ExtResource("1_ttvq1")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
|
|
Loading…
Reference in New Issue
Block a user