Best way to achieve a smooth health bar

bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
edited April 2015 in Working with GS (Mac)

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

  • SummationSummation Member, PRO Posts: 476

    @bjandthekatz said:
    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?

    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).

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2015

    How's this?

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375

    That works perfect @tatiang . Thank you

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome. I replaced the file above with a slightly simpler version with notes in the actor.

  • BigDaveBigDave Member Posts: 2,239

    @tatiang wow gonna try tomorrow if this works for orcs healtbars would be smooth
    thanks!!

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2015

    @BigDave You're welcome! Hope it works in a real situation with other actors, constraints, etc.

  • ArmellineArmelline Member, PRO Posts: 5,419

    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 :(

  • LovejoyLovejoy Member Posts: 2,078

    @Armelline said:
    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.

  • ArmellineArmelline Member, PRO Posts: 5,419

    @Lovejoy said:
    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!

Sign In or Register to comment.