I have created two dice and I wish them to both roll when another actor is clicked. This is the code in the diceAnd this is the code in the button
public dice()
{
getImage().scale(300, 300);
} public void clicked()
{
if (Greenfoot.mouseClicked(this))
{
value = Greenfoot.getRandomNumber(6)+1;
dice d = new dice();
d.setImage(value + ".jpg");
d.getImage().scale(300, 300);
}

