Hi
I have a few bsp files that I want to try and load into blitz3d, I have them in the same folder as the file but when it loads is says that the entity (the bsp) does not exist. is there additional steps I need to use? this is what I have now
;code
Graphics3D 600,400,32,2
SeedRnd(MilliSecs())
units=1
floors=2
player=CreatePivot()
camera=CreateCamera(player)
PositionEntity camera,0,3,0
EntityType player,units
EntityRadius player,2
Collisions units,units,2,3
Collisions units,floors,2,3
;here is the bsp load
level=LoadBSP("4u2map3.bsp")
BSPAmbientLight level,0,255,0
EntityType level,floors
While Not KeyHit(1)
gravity(player,1)
;keymovement
If KeyDown(17) Then MoveEntity player,0,0,.5
If KeyDown(31) Then MoveEntity player,0,0,-.5
If KeyDown(30) Then MoveEntity player,-.5,0,0
If KeyDown(32) Then MoveEntity player,.5,0,0
;Mouse movement
Local x_speed#,y_speed#
x_speed=(MouseXSpeed()-x_speed)/2+x_speed
y_speed=(MouseYSpeed()-y_speed)/2+y_speed
MoveMouse 320,240
TurnEntity player,0,-x_speed,0
TurnEntity camera,-y_speed,0,0
UpdateWorld
RenderWorld
Flip
Wend
End
Function gravity(unit$,speed#)
TranslateEntity Unit$,0,-speed#,0
End Function
;code
I have a few bsp files that I want to try and load into blitz3d, I have them in the same folder as the file but when it loads is says that the entity (the bsp) does not exist. is there additional steps I need to use? this is what I have now
;code
Graphics3D 600,400,32,2
SeedRnd(MilliSecs())
units=1
floors=2
player=CreatePivot()
camera=CreateCamera(player)
PositionEntity camera,0,3,0
EntityType player,units
EntityRadius player,2
Collisions units,units,2,3
Collisions units,floors,2,3
;here is the bsp load
level=LoadBSP("4u2map3.bsp")
BSPAmbientLight level,0,255,0
EntityType level,floors
While Not KeyHit(1)
gravity(player,1)
;keymovement
If KeyDown(17) Then MoveEntity player,0,0,.5
If KeyDown(31) Then MoveEntity player,0,0,-.5
If KeyDown(30) Then MoveEntity player,-.5,0,0
If KeyDown(32) Then MoveEntity player,.5,0,0
;Mouse movement
Local x_speed#,y_speed#
x_speed=(MouseXSpeed()-x_speed)/2+x_speed
y_speed=(MouseYSpeed()-y_speed)/2+y_speed
MoveMouse 320,240
TurnEntity player,0,-x_speed,0
TurnEntity camera,-y_speed,0,0
UpdateWorld
RenderWorld
Flip
Wend
End
Function gravity(unit$,speed#)
TranslateEntity Unit$,0,-speed#,0
End Function
;code