Honestly I know how it should work but the priorities I am not sure what would trigger 1st.
What you can do is send 1 message to all attached objects with the value of your hp. Because you have 14 animations 5000/14 = 357, so put your hp amount into an expression that says âA(The hp Input)/357â That will give you an output, then have that output go into a number behavior to round the number, that number then goes into the animation Go To input. If the hp amount is less than 357 you can have a filter to either put the animation on frame 1 or to be empty if you prefer
Actually 15 animationsâŚI thought, recheck my math please, also would this work for turning off the animation(For full up showing)?
So if being full is having the animation off and there are 15 animation frames do 5000/16 = 312, then have a filter, if itâs equal to 16 have the animation off.
Itâs actually 313, since you round it up. It shouldnât matter, however.
How would this work with max HP increase?you know what nevermind, if i am allowing upgrades i am just gonna have em take reduced DMG
Max HP amount/ Number of frames = B â Expression âA(Hp amount)/Bâ â Number (to round it) â animation frame
so max health doesnt really mean anything accept for being a different value, ok thanks!
Ok is there i simple way of doing it differently because my frames go from high hp to lower, do i have to reorganize the frames?
Put that through another expression â(Number - total number of frames)*-1â
What have I done wrong and how do i fix it(Ally HP Bar Object).
Use this expression (A-16)*(-1)
Add () where I showed it. Order of operation is very important. Also, the -1 needs the () around it because it wonât read it as -1, but as - 1 which is an error because it wants to do â(A-16)*-â which wonât work.
IT WORKS PERFECTLY@!!! thank you!!!
np, always happy to help
you will be added in the âSpecial thanks toâ section of the credits.
So i tried copy/pasting and it doesnt really work, this HP bar is needing to be used for all neutral-alligned entities(Neutral HP Bar) the same goes for allies and Enemies, i just want to know how to make it operate correctly-Flowlab Game Creator - The Places Beyond(Beta)
Copy and pasting the equation into the expression isnât working?
No, check the âNeutral HP Barâ object