EntityAutoFade

Blitz3D Forums/Blitz3D Programming/EntityAutoFade

Shambler(Posted 2004) [#1]
IF I fade a parent entity do the children fade with it?

At work atm so can't test this.


Ross C(Posted 2004) [#2]
Nope, just tested it. Only the entity specified in EntityAutoFade fades. The child isn't affected :)


Ross C(Posted 2004) [#3]
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



Shambler(Posted 2004) [#4]
Thanks, what about entityalpha? I assume that does.


Ross C(Posted 2004) [#5]
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.