[REQUEST]Set an object's alpha from the code

I see no way to directly set an object's alpha from the program's C code. Neither orxGraphic nor orxObject have the function to do so. I propose that you add this function as orxObject_SetAlpha if possible. If it isn't possible, I'll make do. If it is, it would be nice to have this function at my fingertips.

Comments

  • edited November 2011
    Well, you actually have orxObject_SetColor() (and similar for graphic), the color being the 4 channels of red, blue, green and alpha.
  • edited November 2011
    Ah, thanks a bunch. What's the default color value if you don't specify one in the object config?
  • edited November 2011
    No problem. In that case none is actually applied, which has the same result as using the color white (ie. fully lit).
Sign In or Register to comment.