I am trying to make the entire scene fade out however Scene does not allow for .setBlenFunction. I know that I am attaching a Sprite to the scene and therefore the blend should apply to all children of the scene but the spirtes do not fade.
Using java Syntax Highlighting
- final Scene scene = new Scene();
- scene.setBackground(new ColorBackground(0.0f, 0.0f, 0.0f));
- TextureRegion aRegion= this.introLibrary.get(IntroXML.R);
- /* Create the face and add it to the scene. */
- final Sprite aSprite = new Sprite(66, 491, aRegion);
- aSprite.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
- scene.registerEntityModifier(new AlphaModifier(3f, 0f, 1f));
- scene.attachChild(aSprite);
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
My understanding from the above should mean that all sprites attached to the scene would have their alpha values increment from 0 to 1. This does work if I use the alphaModifier on the sprite however if I had 50 in the scene then that is no going to be a smart idea.
Why does this modifier not work for the sprites?
Note: Other modifiers do work for the scene
Thanks

