Search Unity

tween a float between 2 values

Discussion in 'Scripting' started by NikoBusiness, May 6, 2015.

  1. NikoBusiness

    NikoBusiness

    Joined:
    May 6, 2013
    Posts:
    289
    i have this healthbar th references a float value and for example lets think that float health equals 200 and and then it needs to equal 150 i dont want it to change instantly or change smoothly by time t.I want it to start reducing fast and as near it gets slow reduction speed.is itween capable of that?
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    BisherHd and hamsterbytedev like this.
  3. NikoBusiness

    NikoBusiness

    Joined:
    May 6, 2013
    Posts:
    289
    @GroZZleR thats excactly what i'm looking for! thank you