I need grav. in my game so I want to know how.
I have one characters class and I will have 4 Object classes.
(As in ground stuff.)
public void act()
{
if (notOnGround())
{
fall();
}
}public void fall()
{
setLocation(getX(), getY() + 1);
}