Best way to achieve a smooth health bar
I am looking for a line to represent the time, and initially take up the entire top of the screen (412px). When time is subtracted/added I would like the bar to be constrained to the current time available. From the tutorials I've watched and the experiments I've done, I can only get a choppy result.
What is the best way to do this for a smooth viewing experience?
Comments
By time do you mean the actual time?
Or is it a timer keeping track of something in-game?
If you constrain something to something, that something is always keeping track of a change in that other something, so it may look choppy.
Try to interpolate the value of the current bar to the new value, over a period of time (1 second, for example).
How's this?
That works perfect @tatiang . Thank you
You're welcome. I replaced the file above with a slightly simpler version with notes in the actor.
@tatiang wow gonna try tomorrow if this works for orcs healtbars would be smooth
thanks!!
@BigDave You're welcome! Hope it works in a real situation with other actors, constraints, etc.
Threads like this make me sad that all my demos are forced into one thread where only a tiny fraction of people see new ones that are posted
Its for the good of the forum, otherwise this forum would turn into an advertising forum and give the green light for spamming with template posts.
I still disagree, but will stick to my thread. Certainly not delving into that hornet's nest again! I definitely post about 1/3 of what I would otherwise, though, and what I do post gets seen by 1/100th the people it otherwise would. Ah well, the price you pay for some people's insistence on abusing the system!