• Post Reply Bookmark Topic Watch Topic
  • New Topic

Gui Help

 
Albion Bame
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code and I want to move from one button to an other depending on the roll of the dice,for example if the dice rolls 5 i want to go to (1+5) six and to put a diferent color to it and so on.Can you help me.

button.java

>
 
Randall Twede
Ranch Hand
Posts: 4520
6
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could put the buttons in an array and use the value of the dice roll to address the proper one
 
Albion Bame
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!