[LIBGDX][SOLVED] Bitmap font add action

How to BitmapFont add fadeIn/fadeOut/moveTo action?

Can you explain more clearly what you want, and perhaps provide some code you are working on? I cannot make sense of what you are trying to ask…

I think this is what you’re looking for:

I create Actor and in actor create font

font = new BitmapFont(Gdx.files.internal("assets/font/ubuntu.fnt"));

in next step, add action to actor

addAction(Actions.sequence(
			Actions.parallel(
				Actions.fadeIn(...),
				Actions.moveTo(...)
			),
			Actions.parallel(
				Actions.moveTo(...),
				Actions.fadeOut..)
			),
			Actions.removeActor()
		));

in draw method

@Override
	public void draw(SpriteBatch batch, float parentAlpha) {
		font.draw(batch, damage, getX(), getY());
	}

font move but fadeIn and fadeOut don’t work, and I try add action to font, but this don’t work.
I think font need create as sprite to apply the action, but I want work with font, not with sprite

try a


font.setColor(1, 1, 1, parentAlpha)

before drawing

I have it, but this don’t decide my trouble.
I find Label from scene2d, and try use it, reply later about my attempt.

UPD: It’s work! Action work with Label.