Alpha Modifier

  ... discussions about development with the GLES2 branch of AndEngine.

Alpha Modifier

Postby Dangriff » Mon Mar 05, 2012 1:58 pm

Hi, and thanks for reading..

Does any one know if Scene Alpha modifier will be added, as currently it doesn't look to be supported.

please correct me if am am wrong. I am new to this but looking for a solution.

Thanks

Daniel


Another Q..


Hi the alpha modifier does not seem to work at all on any entities.

has there been any renaming since the release of the book "learning Android Developement"by rick rodgers - forward by Nicolas Gramlich?

thanks
Dangriff
 
Posts: 11
Joined: Mon Feb 27, 2012 8:17 am

Re: Alpha Modifier

Postby Rik1988 » Thu Mar 08, 2012 6:44 am

Hey,

Alpha modifier is working fine on my sprites. Are you setting the blend function on the sprite before trying to setAlpha?

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. mySprite.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
  2. mySprite.setAlpha(0.5f);
  3.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Rik1988
 
Posts: 126
Joined: Thu Jan 19, 2012 5:52 pm

Re: Alpha Modifier

Postby Dangriff » Thu Mar 08, 2012 3:52 pm

Thanks for the reply,

where would i set the code initially as you have stated.

would that be within the Andengine class files or on the class/level/entity i am trying to modify?

thanks

Daniel
Dangriff
 
Posts: 11
Joined: Mon Feb 27, 2012 8:17 am

Re: Alpha Modifier

Postby Dangriff » Thu Mar 08, 2012 4:18 pm

basically if i have abackground image and i wish to fade it out along with the scene menu, How would i do that?
is it possible?

Thanks
Dangriff
 
Posts: 11
Joined: Mon Feb 27, 2012 8:17 am

Re: Alpha Modifier

Postby nxnwsoftware » Thu Mar 08, 2012 5:22 pm

maybe try something like this - seems to be a common practice

gles2/scene-alphamodifier-t6882.html#p30203
nxnwsoftware
 
Posts: 96
Joined: Wed Jan 11, 2012 1:01 am
Location: DFW Area, Texas, USA

Re: Alpha Modifier

Postby Dangriff » Thu Mar 08, 2012 5:29 pm

Most Excellent.. will give it a whirl!!

please excuse me if i come across a little fresh.. new to java and AndEngine.

Many Thanks
Dangriff
 
Posts: 11
Joined: Mon Feb 27, 2012 8:17 am


Return to GLES2

Who is online

Users browsing this forum: danis, Exabot [Bot] and 37 guests