Change alpha to a Frame in libgdx

Posted by Rudy_TM on Game Development See other posts from Game Development or by Rudy_TM
Published on 2012-03-17T08:16:58Z Indexed on 2012/03/19 2:17 UTC
Read the original article Hit count: 310

Filed under:
|

I have this

batch.draw(currentFrame, x, y, this.parent.originX, this.parent.originY, this.parent.width, this.parent.height, this.scaleX, this.scaleY,this.rotation);

I want to apply the alpha that it gets from the method, but theres is not overload from the SpriteBatch class that takes the alpha value, is there some wey to apply it? (i did it this way, because this are animation, and i wanted to control them) in my static ones i apply

sprite.draw(SpriteBatch, alpha)

Thanks

© Game Development or respective owner

Related posts about animation

Related posts about libgdx