Would it be possible to simplify this using clamp?
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 ....
Develop games in your browser. Powerful, performant & highly capable.
I'm confused on how to do the between?
Value: PartSel
Lower bound: 0
Upper: 4