how to keep an ex bar from getting too long

how do i constrain my experience bar from getting longer that 40

Comments

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

    You can use the min() function which returns the smaller of two values. So for example your expression could be min(game.experience,40) or perhaps Change Attribute game.experience to min(game.experience+5,40).

  • im still a bit lost

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

    @wendell_heather@yahoo.com said:
    im still a bit lost

    What have you tried? Were you able to set up an expression in a Constrain Attribute behavior (I mistakenly wrote Change Attribute earlier)?

Sign In or Register to comment.