Code:case ## p.look[0] = p.look[0] + 1; break;
|
|
How do I set more than 1 action for an interface button?
Like say I'm using the character design interface. How would I make it so that my players hair changes everytime I click the button?

Code:case ## p.look[0] = p.look[0] + 1; break;
Something like that should work, change the case and buttons to the correct ids.Code:case ****: if (buttonId == 5) { p.look[0] = p.look[0] + 1; } if (buttonId == 4) { p.look[0] = p.look[0] + 1; } System.out.println("buttondID : " + buttonId); break;
Ok thanks will try it.![]()
| « Claws hit 4 time!!!! *[ESPEON]!!!! | How would i make this code work » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |