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 :
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
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

