Howdy, and thanks in advance for any assistance!
Beating my head against a wall today trying to figure out how to express the logic behind my main actives. I am trying to use a little math and 2 global variables to determine the frame number.
Global Value A = 10
Global Value B = 100
A behavior inside the active:
Always -> Force Animation Frame ((Global Value A / Global Value B)*21)
Expected behavior: A number between 0 and 21 based on the percentage generated by dividing the two values being used as the animation frame, the corresponding frame displaying on the screen 'always'.
Actual behavior: Frame stuck at 0.
Other methods attempted:
Build a list of behaviors inside the active conditioned like this : compare two values ((Global Value A / Global Value B) * 21 <1 ---> Force Animation to frame 0, compare two values ((Global Value A / Global Value B) * 21 >= 1 ---> Force Animation to frame 1 etc..
rounding the product of the calculation in case decimals are being interpreted round((Global Value A / Global Value B)*21)
I deleted the active and built it again in case there was a hidden behavior lurking somewhere.
Ideas? Thanks again!