EntityAutoFade

Blitz3D Forums/Blitz3D Programming/EntityAutoFade

IF I fade a parent entity do the children fade with it?

At work atm so can't test this.

Nope, just tested it. Only the entity specified in EntityAutoFade fades. The child isn't affected :)

Code used: (i know you can't run it :) )

Graphics3D 800,600
SetBuffer BackBuffer()

cam=CreateCamera()
PositionEntity cam,0,2,-2
RotateEntity cam,30,0,0

light=CreateLight()

cube=CreateCube()
PositionEntity cube,0,0,-2

cube1=CreateCube(cube)
PositionEntity cube1,0,-0.5,-5
EntityColor cube1,100,100,255

EntityAutoFade cube,10,20
EntityAutoFade cube1,15,20

While Not KeyHit(1)


	If MouseDown(1) Then MoveEntity cube,0,0,0.1
	If MouseDown(2) Then MoveEntity cube,0,0,-0.1
	
	
	UpdateWorld
	RenderWorld
	Flip
Wend
End


Thanks, what about entityalpha? I assume that does.

Nope, doesn't either :S I thought it did. I think that was HideEntity tho :)

So entity alpha does NOT affect the children, if used on the parent.