EntityColor (white color)

Blitz3D Forums/Blitz3D Beginners Area/EntityColor (white color)

Red(Posted 2004) [#1]
Is it possible to color in white a textured mesh ?

EntityColor e,255,255,255



jhocking(Posted 2004) [#2]
Not if it's textured, no. The entity color only tints the textured appearance, so the texture will always show. You can remove a texture from an entity by creating a blank texture and applying that to the entity, like so:

blank=CreateTexture(1,1)
EntityTexture c,blank


big10p(Posted 2004) [#3]
This does it but then the textures have gone for good, I think:

brush = CreateBrush(255,255,255)
PaintMesh mesh,brush



Red(Posted 2004) [#4]
thx it works.

Below a white flash FX:
Global ENEMY_NOT_COLORED = GetEntityBrush(e)
Global ENEMY_COLORED     = LoadAnimTexture( "gradient_white_2_black.png",1,1,1,0,5 )
TextureBlend ENEMY_COLORED,3

For frame=0 to 4
	EntityTexture e,ENEMY_COLORED,frame,1
next
PaintEntity e,ENEMY_NOT_COLORED