I want to make it so that when you click a button, it adds 1 onto the score (i got that one) then another button increases the amount the click increases for a certain amount of points
Here is my code for the clicker
and then here is my increase click code
Thanks.

import greenfoot.*;
/**
* Write a description of class BlueClick here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class BlueClick extends Actor
{
private int var = 0;
private int add = 1;
/**
* Act - do whatever the BlueClick wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
getWorld().showText("Score: " +var, 100, 40);
if (Greenfoot.mouseClicked(this))
{
var = var + add;
}
}
}
import greenfoot.*;
/**
* Write a description of class BlueClick here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class BlueClick extends Actor
{
private int var = 0;
private int add = 1;
/**
* Act - do whatever the BlueClick wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
getWorld().showText("Score: " +var, 100, 40);
if (Greenfoot.mouseClicked(this))
{
var = var + add;
}
}
}


