From e0d78007d75d4e912dfabf03048635c2dc60f5fd Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Apr 2022 21:40:32 +0200 Subject: [PATCH] :bug: Fix pickups not getting picked up --- src/levels/mainmenu/MainMenu.tscn | 3 +++ src/pickups/Pickup.gd | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/levels/mainmenu/MainMenu.tscn b/src/levels/mainmenu/MainMenu.tscn index da452e7..7ca809a 100644 --- a/src/levels/mainmenu/MainMenu.tscn +++ b/src/levels/mainmenu/MainMenu.tscn @@ -38,6 +38,9 @@ texture = ExtResource( 2 ) position = Vector2( 421, -275 ) scale = Vector2( 4, 4 ) +[node name="FlameSprite" parent="TheDarkNightUI/MenuFire/Flame/Shape" index="0"] +frame = 3 + [node name="Damaging" parent="TheDarkNightUI/MenuFire" index="3"] damage = -5.0 diff --git a/src/pickups/Pickup.gd b/src/pickups/Pickup.gd index 4262669..0831e70 100644 --- a/src/pickups/Pickup.gd +++ b/src/pickups/Pickup.gd @@ -21,7 +21,7 @@ func _on_Despawn_timeout(): func pick_up(): - active = false + set_active(false) $Duration.start() emit_signal("picked_up")