HorizontalWall htop = (HorizontalWall)getOneObjectAtOffset(0, 8, HorizontalWall.class);
if(htop != null && getRotation()==SOUTH){
speed = 0;
}
I have this code, and it doesn't work. Can someone help me. I have a speed variable, and I have north south east and west constants. When my character touches the top of the wall and is moving down, he doesn't stop.

