I have this code:
I need to test if there is ground under my player, but i can't get it to test for the object "GroundFloor". it just gives me an error.
1 2 3 4 5 | public boolean onGround() { Actor under = getObjectsAtOffset( 0 , 20 , GroundFloor. class ); return under != null ; } |