So guys just wanted to ask could we move an object upwards in a smooth way other than just teleporting?
This is my code
public void act()
{
if (isTouching(MAN.class))
{
setImage("lift-closed.png");
Greenfoot.delay (1);
setLocation(getX(), getY()-300);
}
if (isTouching(TRIGGER4.class))
{
setImage("lift-open.png");
getWorld().addObject(new MAN2(),698,246);
}
if (isTouching(TRIGGER3.class))
{
setImage("lift-closed.png");
}
}


