Would it be possible to simplify this using clamp?
Develop games in your browser. Powerful, performant & highly capable.
On UP Key pressed: Set PartSel to max(0, PartSel-1) On Down Key pressed: Set PartSel to min(4, PartSel+1) System PartSel is between values 0 and 4 : Set font color .... Else : set font color ....
I'm confused on how to do the between?
Value: PartSel
Lower bound: 0
Upper: 4