How do you make something fall
setLocation(getX(),getY()+1);
private int ySpeed = 0; // in act method ySpeed++; // acceleration due to gravity setLocation(getX(), getY()+ySpeed);
public void die()
{
{
Actor fish;
fish=getOneObjectAtOffset(0,0, Fish.class);
if (fish != null)
{
World world;
world=getWorld();
world.removeObject(fish);
}
}
}
{
Actor arrows;
arrows=getOneObjectAtOffset(0,0, Arrows.class);
if (arrows != null)
{
World world;
world=getWorld();
world.removeObject(arrows);
}