Sprite at full light
Blitz3D Forums/Blitz3D Beginners Area/Sprite at full light
| ||
| When I load a sprite it is always at full light/ illumination, reguardless of the ambient light. Is there a way to change this? |
| ||
Bah! Appearently Sprites load at a default brushfx of +1 (full light) so I had to do it all manually:
sprite= CreateSprite() ; set your parent entity as needed
brush = LoadBrush("filename.bmp") ; set your texture flags as needed
BrushFX brush, 0 ; NO EFFECTS
PaintEntity sprite, brush ; paint it
FreeBrush brush ; clean up, delete the brush
|
| ||
| Or, just use entityfx on your sprite. That should do the trick :o) |