Step 3: Highlighting the Selected Character

We will use an alterable value called Selection to keep track of which Keypad Character is currently selected. To highlight the selected Keypad Character we can simply compare it's ID to the Current Selection.

Now, please add the following events. Note, be sure to use Compare to one of the alterable values and not Compare two general values. There is a very big difference. For more information click here.
In the first event we spread the value 0 across all 40 Keypad Character instances. Therefore each has a unqiue ID value from 0 to 39. By default, the Selection is set to 0. Run the application and you will see the first character selected.

6