if (sprite_index != -4)
layer_set_visible("sequence_layer", false)
else
layer_set_visible("sequence_layer", true)