// Metodo que acomoda el texto al centro y arriba de la pantalla private void SetFontTextCenter(TitleActor fontActor, String text) { imageTitle.ChangeFontText(titlesList.get(0)); GlyphLayout layout = new GlyphLayout(); layout.setText(fontActor.GetFont(), text); float textX = (Gdx.graphics.getWidth() / 2) - (layout.width / 2); float textY = layout.height + (Gdx.graphics.getHeight() - 50f); fontActor.setPosition(textX, textY); }