Hello !
I've a problem that I do not manage to resolve : I try to create a "gravity" effect, but in only one world. I use this code for that :
There is no syntax error, but in the world Water, the gravity doesn't work...
public void gravity()
{
if(getWorld() == Water())
{
int gravite = getY() + 1;
setLocation(getX(), gravite);
}
}
