Sprite at full light

Blitz3D Forums/Blitz3D Beginners Area/Sprite at full light

Moore(Posted 2008) [#1]
When I load a sprite it is always at full light/ illumination, reguardless of the ambient light. Is there a way to change this?


Moore(Posted 2008) [#2]
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



Ross C(Posted 2008) [#3]
Or, just use entityfx on your sprite. That should do the trick :o)