Ok I have a problem...whenever I try to load either a .x or .3ds object...the program freezes...if I remove the "Load "level.x" line...it runs just fine
Any ideas as to why?
Sync On
Sync Rate 30
Rem Make player pawn
Make object sphere 10,25
position object 10,60,0,60
Load Object "B1-2.3ds",100
Scale Object 100,1000,1000,1000
Rem Main loop
Do
set cursor 0,0
print screen fps()
Rem Store Object angle
AngleY# = object angle Y(10)
Rem Control input for camera
If Upkey()=1
Move object 10,10
Endif
If Leftkey()=1 then Yrotate object 10,Wrapvalue(AngleY#-5)
If Rightkey()=1 then Yrotate object 10,Wrapvalue(AngleY#+5)
X# = Object position x(10)
Z# = Object position z(10)
Y# = Object Position Y(10)
Position object 10,X#,Y#,Z#
CameraZ# = Newzvalue(Z#,AngleY#-180,100)
CameraX# = Newxvalue(X#,AngleY#-180,100)
CameraY# = Object Position Y(10)
Position camera CameraX#,CameraY#+50,CameraZ#
Point camera X#,Y#+25,Z#
Rem Refresh Screen
Sync
Loop