When I use the isTouching() method in to make collisions my character floats 50 px from object. This doesn't occur when using !=null, but there are some issues with the character floating through walls.
public void PlatformCollisions(){
Actor Platform;
Platform = getOneObjectAtOffset(0 ,0, Platform.class);
if(isTouching(Platform.class)){
setLocation(getX(),getY()-4);
Global.ground=true;
}
}
