how do i constrain my experience bar from getting longer that 40
Comments
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 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).
Comments
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
What have you tried? Were you able to set up an expression in a Constrain Attribute behavior (I mistakenly wrote Change Attribute earlier)?