I'm not sure on how to go about adding text to my bingo game. I want text to show up after a number, from 1 to 90, has been generated. For example, say 4 was generated then I would want 2+2=? to show up and I'm sure what code to use or where to add it.
This is a snippet of my code, as my code goes from 1 to 90;
public void act()
{
if (Greenfoot.isKeyDown ("space"))
{
int Number = Greenfoot.getRandomNumber(3);
setImage (new GreenfootImage ("" + Number, 100, Color.YELLOW, Color.BLACK));
Greenfoot.delay(20);
if (Number == 1)
{
if (Used_1 == 0)
{
Used_1 = 1;
Counter counter = new Counter();
getWorld().addObject(counter, 27, 98);
}
}
if (Number == 2)
{
if (Used_2 == 0)
{
Used_2 = 1;
Counter counter2 = new Counter();
getWorld().addObject(counter2, 82, 98);
}
}
if (Number == 3)
{
if (Used_3 == 0)
{
Used_3 = 1;
Counter counter3 = new Counter();
getWorld().addObject(counter3, 136, 99);
}
}

