Hi - this is my first post on these forums. I am currently working on a sort of RPG/platform hybrid game, in which the main character is supposed to have mana to spend on spells. I want to display a mana bar on top of the screen.
The maximum amount of mana is not fixed, but based on the main characters level. To display the mana, I have created an active object in form of a horizontal bar. My thought is that I can control this mana bar by setting its hot spot on the left side of the bar, and always setting:
XScale to mana("player")/maxmana("player")
Mathematically, this should produce a number between 0 and 1, as long as I make sure that the players mana cannot exceed the maximum mana.
However, when I try this out, the mana bar disappears. My theory is that MMF2 makes the calculation mana/maxmana, and sets the mana bar XScale to the integer value of the result. This value is of course always 0, unless mana=maxmana.
I don't know if that is what happens, or if something else is wrong. I would, in either case, be very thankful for any solution to how to do this properly. Note that I do not want to use a counter set to display as a bar, since counters have a tendency to flicker when the screen scrolls.