Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Why does adding LIBGDX “fadeIn” action to a table in a group make the whole stage fade in?

$
0
0

I’m trying to “fadeIn” a store “screen” which is really just an invisible group. I set the group to visible=true, set the alpha to 0 and then do a “fadeIn” on the group. The problem is that the whole stage goes black (my clear screen color) and then fades back in.

storeGroup.addAction(Actions.sequence(Actions.alpha(0), Actions.fadeIn(1)));

I even went as far as to make the Table within my StoreGroup accessible and adding the action to that, but the result is the same.

storeGroup.getTable().addAction(Actions.sequence(Actions.alpha(0), Actions.fadeIn(1)));

Essentially I just want my store group to fade in over whatever is currently displaying, but the fade in seems to apply to every other actor in my Stage, not JUST the one I’m adding it to.

Any help would be greatly appreciated, I’ve been working on this all morning and can’t figure out why the “fadeIn” is applying to everything.


Viewing all articles
Browse latest Browse all 434

Trending Articles