Step 5: Highlight selected line

We will store the currently selected line number in an alterable value called Selected Line. By comparing this value to the Line ID value of each Character object, we can tell if that object is on the currently selected line.

The Blitter object contains 2 animation sequences. Both with the same 89 frames, only different colours. To highlight the selected menu item, we simply change the animation of Character objects on that line.
It is very imporant to NOT use Compare two general values when you create these two events. That would only compare the Line ID value of the most recently created Character object. Instead, use Compare to one of the alterable values. This way MMF2 will loop through and effect each individual Character object instance. For more information, read this.

By default, Line Selected is equal to 1, so test the application and you will see the first line selected.

8