extends StaticBody2D var should_clean := false # offset of one frame (or two) func _process(delta): if should_clean: set_modulate(Color.WHITE) should_clean = false elif get_modulate() != Color.WHITE: should_clean = true func paint() -> void: set_modulate(Color.HOT_PINK) should_clean = false