Thursday, 11 May 2017

Character Select

This menu has controller support, to read how this was achieved, please read the post titled Menus with Controller Support.

On the character select screen, I wanted each character to be highlighted when not just the player hovers the character model, but also when the buttons are focused on the UI using the controller or the mouse.

To achieve this effect, I had to use code in the character objects to check the highlight status of the buttons in the menu.

When the menu is created, it is added as a variable in the Dummy Character. As long as we keep it as a variable, we can read the status of elements inside it.

The code in the character objects check the variable and get the focus status of their respective button, then use this to choose whether to turn on or off their highlight.



and the result is:



No comments:

Post a Comment