Attribute range
Stryker
Member Posts: 40
Hey,
I have a atribute that +/-1 every time a button is pushed. Whats the best way to keep that attribute from going above 21 and below 0.
Thanks
I have a atribute that +/-1 every time a button is pushed. Whats the best way to keep that attribute from going above 21 and below 0.
Thanks
Comments
If attribute ≥ 21 change attribute to 20.
and...
If attribute ≤ 0 change attribute to 1.
Maybe.
ifTouch is Pressed then
game.Run +random(1,3)max(20)
Does that look right?
If Touch is pressed then
Change attribute: game.Run to: min(game.Run + random(1,3),20)