mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-23 07:58:09 +00:00
fixed an issue where coin particles werent spawning if the coin was part of the tilemap
This commit is contained in:
@@ -24,8 +24,8 @@ func collect() -> void:
|
|||||||
$Sprite.queue_free()
|
$Sprite.queue_free()
|
||||||
else:
|
else:
|
||||||
queue_free()
|
queue_free()
|
||||||
if get_parent() is TileMapLayer:
|
if get_parent() is TileMapLayer:
|
||||||
get_parent().erase_cell(get_parent().local_to_map(position))
|
get_parent().erase_cell(get_parent().local_to_map(position))
|
||||||
|
|
||||||
func summon_block_coin() -> void:
|
func summon_block_coin() -> void:
|
||||||
var node = spinning_coin_scene.instantiate()
|
var node = spinning_coin_scene.instantiate()
|
||||||
|
Reference in New Issue
Block a user