hi there, want to ask something here.
i have been playing with blitz3d and I came across the using function. The problem is I have difficulty using it.
below is my code:
Graphics3D 800, 600
SetBuffer BackBuffer()
camera = CreateCamera()
CameraViewport camera, 0, 0, 800, 600
cube = CreateCube()
light = CreateLight()
PositionEntity cube, 0, 0, 5
While Not KeyHit(1)
turncube()
UpdateWorld
RenderWorld
Flip
Wend
Function turncube()
EntityAlpha cube, 0
End Function
End
Well, I got a "entity does not exists" error when i enable debug or i got a "memory access violation" when debug is off. anyone knows why?
thanks alot!
i have been playing with blitz3d and I came across the using function. The problem is I have difficulty using it.
below is my code:
Graphics3D 800, 600
SetBuffer BackBuffer()
camera = CreateCamera()
CameraViewport camera, 0, 0, 800, 600
cube = CreateCube()
light = CreateLight()
PositionEntity cube, 0, 0, 5
While Not KeyHit(1)
turncube()
UpdateWorld
RenderWorld
Flip
Wend
Function turncube()
EntityAlpha cube, 0
End Function
End
Well, I got a "entity does not exists" error when i enable debug or i got a "memory access violation" when debug is off. anyone knows why?
thanks alot!