Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java logic.
#3
im still figuring out how to get the diceroll to add on to the 'current position' ;-; ;-; ;-;

ok i got that part figured out.

anyway, im at here, being all dumb about how to continue :

Code:
if(e.getSource()==roll){
            diceroll = game.Dice();
            position += diceroll;
            
            String update = "You rolled : "+diceroll + "\n";
            String positionupdate = "Your position: "+ (position) + "\n\n";
            
            textArea.append(update+positionupdate);
            

            

            }

also where do I put the above loop ? and im having trouble making the icon appear on the buttons as well.... there goes my assignment marks Sad
Reply


Messages In This Thread
Java logic. - by DeanNim - 2012-08-02, 07:12 AM
Java logic. - by Fiel - 2012-08-02, 07:24 AM
Java logic. - by DeanNim - 2012-08-03, 03:25 AM
Java logic. - by Unauthorized Intruder - 2012-08-03, 12:53 PM
Java logic. - by DeanNim - 2012-08-03, 09:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)