Hi
is there some sort of way of making greenfoot wait for a bit? its like I want it so it can show an animation but loads of pictures take forever to draw.ps I wont give code because I have no idea how to use this.
Greenfoot.delay(int time)
mport greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class sausageNinja1 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class sausageNinja1 extends Actor
{
/**
* Act - do whatever the sausageNinja1 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
Greenfoot.delay(5);
{
Actor beginning;
beginning = getOneObjectAtOffset(0, 0, beginning.class);
if (beginning != null)
{
World world;
world = getWorld();
world.removeObject(beginning);
}
}
}
}