I wanted to make a character selection menu like this http://fav.me/d502ank
Say instead of keyCode, I’ll be using MOUSE_OVER and MOUSE_OUT. Planning to bring in/out the character from the side with caurina tweener whenever the mouse rollover the button. Now here’s the problem. for a 12 character selection there will be 12 repeat of script for each mouseEvent, is there a way to avoid this? like how a function can be shared by multiple eventListener with switch case?
Side question: Is there any tutorial on using keyCode to go about menu buttons?
Really wanted to make something similar to the link but I dont know how to.