From d8504d39cc84e294d786911cd5a8b742391f880f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Jan 2023 00:36:53 +0100 Subject: [PATCH] Plant the seeds (he he) for pineapple behavior --- island/Pineapple.gd | 9 +++++++++ island/Pineapple.tscn | 2 ++ 2 files changed, 11 insertions(+) diff --git a/island/Pineapple.gd b/island/Pineapple.gd index 0c5c0bb..5b50d9a 100644 --- a/island/Pineapple.gd +++ b/island/Pineapple.gd @@ -1 +1,10 @@ extends RigidBody3D + + +@onready var player := Singletons.player + + +func _on_collectible_by_player_collected(): + # var player: Node3D = Singletons.player + # player.scale *= 1.05 + pass diff --git a/island/Pineapple.tscn b/island/Pineapple.tscn index 09977b4..d00529c 100644 --- a/island/Pineapple.tscn +++ b/island/Pineapple.tscn @@ -38,5 +38,7 @@ target_path = NodePath("..") [node name="CanSplash" parent="." instance=ExtResource("7_3mgie")] +[connection signal="collected" from="CollectibleByPlayer" to="." method="_on_collectible_by_player_collected"] + [editable path="MoveTowardsPlayer"] [editable path="CollectibleByPlayer"]