Hey Paul,
I made it after many tries!
My solution:
- Using 3 rectangles:
-> Left background
-> Right background
-> ValueBar
Left Side (Negative Area)
- Negative number is recognized:
-> Move the ValueBar to the left
-> Color the left background green and the ValueBar gray
=> Background is the ValueBar on the left and the ValueBar is the background (Complicated to understand)
Right Side (Positiv Area)
- Positive number is recognized:
-> Move ValueBar to half of the object
-> Color the ValueBar green again, the right background turns grey
=> Here the ValueBar is the bar, so normal
- If the value is zero:
-> Color all rectangles gray
I connected the whole thing with an animation "Timing.Back_Out".
Now the bar moves to the left if it's a negative number and to the right if it's a positive number.
Best regards
Justin