fixed an issue where coin particles werent spawning if the coin was part of the tilemap

This commit is contained in:
JHDev2006
2025-10-13 19:53:40 +01:00
parent 455aa14b35
commit 14c193fb27

View File

@@ -24,8 +24,8 @@ func collect() -> void:
$Sprite.queue_free()
else:
queue_free()
if get_parent() is TileMapLayer:
get_parent().erase_cell(get_parent().local_to_map(position))
if get_parent() is TileMapLayer:
get_parent().erase_cell(get_parent().local_to_map(position))
func summon_block_coin() -> void:
var node = spinning_coin_scene.instantiate()