Deactivating a Behavior

I have this code for two separate events. But it don’t work the same.

For the second event I have to press on Mission then CellContents or the other way around to deactivate the shake behavior.

I used a scene variable for both scenes, I named them the same name, “Timescale” both has “1” as initial number value.

I suppose that the problem is that you never change the layer timescale, you modofy only the variable.
Bye,
J

Sorry, I forgot to mention. I did have my timescale for the Base Layer set to pause (0) when Mission/CellContents are pressed.

EDIT: And set to resume (1) when another button is pressed. Hence, “Base Layer = 1”.