1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00

When deleting, modulate the entire converter instead of just the front of the sprite

This commit is contained in:
Steffo 2023-10-04 01:03:47 +02:00
parent e39cc481e2
commit 7ea2872cc2
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -46,11 +46,11 @@ func _on_timer_timeout():
var is_pending_deletion: bool = false
func pending_deletion():
sprite_front.modulate = Color.RED
modulate = Color.RED
is_pending_deletion = true
func ending_deletion():
sprite_front.modulate = Color.WHITE
modulate = Color.WHITE
is_pending_deletion = false
func _on_input_event(_viewport: Node, event: InputEvent, _shape_idx: int):