$x = $level->getX(); By that, you are saying that you want to get the X coordinate of a level object. Does that makes sense to you?