Offscreen Tracking

Blitz3D Forums/Blitz3D Beginners Area/Offscreen Tracking

you could have an arrow that points at the player... basic example

Graphics3D 640,480,0,2
HidePointer()
cam = CreateCamera()
TurnEntity cam,30,0,0


pointer = CreateSphere()
PositionMesh pointer,0,1,0
MoveEntity pointer,0,-4,10
ScaleEntity pointer,1,.1,2
RotateMesh pointer,90,0,0

sphere = CreateSphere()

plane = CreatePlane()
MoveEntity plane,0,-5,0
EntityColor plane,0,0,255
EntityAlpha plane,.5
mir = CreateMirror()
MoveEntity mir,0,-5,0

lit = CreateLight()
TurnEntity lit,90,0,0

SetBuffer BackBuffer()

While Not KeyDown(1)
Cls
PointEntity pointer,sphere
PositionEntity sphere,(MouseX()-320)/20.0,-4,(-MouseY()/40.0) + 9

UpdateWorld()
RenderWorld()

Flip
Wend
End