Hi!
This little code snippet I have just copied from another project I'm working on where it works, so I know this code should work.
I have pasted this into the sliding demo.dbpro example that comes with the sparky collision examples.
The folders and the files exists because I also copied them and put them in the root directory as the project.
But anyway I get this runtime error 506 saying that it cannot load the images.
Anyone has any idea what could be wrong?
function makeLevel()
load image "Files\terrain\hmap.jpg",terrainTexDetail
load image "Files\terrain\hmap.jpg",terrainTex
make object terrain terrainObj
set terrain heightmap terrainObj, "Files\terrain\hmap_HM8.bmp"
set terrain scale terrainObj, 64, 32, 64 // resolution of the terrain
set terrain split terrainObj, 16 // 8 is 8x8 causing 64 meshes
set terrain tiling terrainObj, 64
set terrain light terrainObj, 1, -0.25, 0, 1, 1, 0.78, 0.5
set terrain texture terrainObj, terrainTexDetail, terrainTex
build terrain terrainObj
sc_setupComplexObject terrainObj,1,2
endfunction
www.memblockgames.com