hi all,
I have been working my way through the monester hunt turitorial and i have hit a snag.
I cant get my textures to load
Here is the part of the code were i try to load the textures
Rem load game textures
Load image "C:\darkbasic\media\bitmaps\textures\arcade\floor\grass16.bmp",1
Load image "C:\darkbasic\media\bitmaps\textures\arcade\floor\grass08.bmp",2
Here is all the code for the game
Rem set up sync
Sync on
Sync Rate 30
Rem load game textures
Load image "C:\darkbasic\media\bitmaps\textures\arcade\floor\grass16.bmp",1
Load image "C:\darkbasic\media\bitmaps\textures\arcade\floor\grass08.bmp",2
Rem make cube and place randomly
For x = 1 to 5
Make object cube x,100
Position object X,Rnd(2000),0,Rnd(2000)
Set object collision to boxes x
Texture object x,1
Next x
Rem make sphere
Make object sphere 10,50
Position object 10,-100,0,-100
Set object collision to spheres 10
Texture object 10,2
Rem main loop
Do
Rem store objects Y in aY#
aY# = Object angle Y(10)
Rem controle input for camera
If Upkey()=1 then Move object 10,10
If Leftkey()=1
Yrotate object 10,Wrapvalue(aY#-5)
Endif
If Rightkey()=1
Yrotate object 10,Wrapvalue(aY#+5)
Endif
Rem Detect collision
If Object collision(10,0)>0
Position object 10,X#,0,Z#
Endif
Rem get player object postion and store in x# and z#
X#= object Position x(10)
Z#= object Position z(10)
Rem get new camera position and store in cX# and cZ#
Rem get new camera position and store in cZ# and cX#
cZ# = Newzvalue(Z#,aY#-180,100)
cX# = Newxvalue(X#,aY#-180,100)
Rem position camera
Position Camera cX#,75,cZ#
Rem point the camera at the player object
Point camera X#,25,Z#
Rem Scroll textures on cubes
Scroll object texture 1,0.005,0
Scroll object texture 2,0,0.005
Rem Scale textures on cubes
Scale object texture 3,0.998,0.998
Scale object texture 4,1.001,1.001
Rem refersh screen
Sync
Loop
thanks
Dark Project Studio (web Site comeing soon)