help, i coded a basic countdown timer but it just sits there doing nothing ;c
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class boss here. * * @author (your name) * @version (a version number or a date) */ public class boss extends Actor { int health = 100; int timer = 10; int timer_real = timer; /** * Act - do whatever the boss wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { attack(); getWorld().showText(""+timer, 300, 300); //bullet bullet = new bullet(); } void attack() { timer_real--; if (timer_real<= 0) { bullet bullet = new bullet(); timer_real=timer; } } }