trying to improve an effect in my game...
Hi all, I'm trying to improve the visuals on an effect in my game. It's a simple horizontal bar that fills up to show how many points were just scored, and then it empties again.
Example: you just scored 2000 points. The bar will fill from left to right to the point that coincides with 2000. When it hits this point, it will pause for an instant and then go back down to 0 until you score again. I am achieving this effect using Replicate. I am replicating a 1px actor in the 0 direction, and setting the "copies" to an attribute tied to the points value. Then, I'm using an interpolate behavior inside a timer to bring that attribute back down to 0.
The above method works fine, but what I'd like is something more interesting.
I'd love to have the bar fill with an animation in its height, so it looks like there's a pulse that pushes the bar towards the correct value. Like a heart monitor, for example. This would require dynamically adjusting the height of only the 1px actors that should respond according to the amount of points scored....but that's not an option since I'm using Replicate. Has anything like this been done before? Or does anyone know of the best way to achieve this?
Thanks in advance!