how to keep an ex bar from getting too long
wendell_heather@yahoo.com
Member Posts: 36
how do i constrain my experience bar from getting longer that 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).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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)?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User