Take a look in this capx:
https://1drv.ms/u/s!Ai2wcz1Xix0ygbw7xNGmm8X0uwb0-w
That's exactly the result I want, but inverted. When the bar is empty, the 'water variable' must be 0, not 100. I tried to just make a different blend mode, to invert the mask effect, but without success :\</p>
Develop games in your browser. Powerful, performant & highly capable.
I didn't see capx but you should try
change fill bar with empty bar
and empty with fill bar
Unfortunately, you'll have to see the capx to help me
The bar isn't just a rectangle, it have rounded corners. so I needed to use 3 sprites: bar fill, bar border and bar mask.
Zathan
you probably want to change the set BarMask width event to say: lerp(Self.Width,(100-Water)*150/100,3*dt)
that reverses it...
Zathan you probably want to change the set BarMask width event to say: lerp(Self.Width,(100-Water)*150/100,3*dt) that reverses it...
That's it!
Thank you very much.