Oziv44 wrote: ↑November 11th, 2023, 6:33 pm
I don't know why the red square disappears.
Because when the ActionList1 of the [MeasureSlider] measure is executed, the value of the Offset variable decreases to -20. The X option of the [MeterRedSquare] meter is set to X=(#OffSet# - 50), which means at the end, the meter is positioned to X=-70. Its width being set to W=50, when it gets its leftmost position, it goes outside of the skin to left. No meters this way positioned can be seen.
A solution is to limit the value of the X option of the meter, to not let it to decrease too much, until the meter is not seeable anymore. For instance you can add a Clamp function to the X option of the [MeterRedSquare] meter, like the following one: X=(Clamp((#OffSet#-50),0,400)). See that if you add this function, the meter will be kept always on the visible surface of the skin. But obviously what the proper solution is, depends on where would you like to get the meter when the ActionTimer plugin measure decreases the Offset variable.
Oziv44 wrote: ↑December 22nd, 2023, 4:45 pm
I need the red square to behave as it did at the beginning of the animation.
Sorry, no, it doesn't. It moves to left. With your code it moves to left and goes outside of the visible area of the skin, to left. Replacing the X option of the [MeterRedSquare] with the one I proposed above, the square moves same way to left, but when it reaches the most-left part of the skin, it remains visible.
Oziv44 wrote: ↑December 22nd, 2023, 4:45 pm
I need the red square to behave as it did at the beginning of the animation.
As far as I can tell, with the proposed modification of the X option, it behaves exactly as on the beginning of the animation, with the requested addition: it is kept on the skin, not going outside of it.
So, I can't really follow what would you like to achieve. Please give us a few details.