(I'm using dark physics but i dont believe that is the problem)
this one is bugging me ALOT







I load a map (map one is working fine, map 2 has the problem), fully made in blender, just one object, and export it as .x, put it in the directory, and about half of it doesn`t load, just turns white and theres no collision with that part (I tried re-exporting, making a new map, tripling up on the places that are turning white and nothing!)!! Please help, does anyone know whats going on? My code:
phy start:sync on:sync rate 60:autocam off:phy set gravity 0,-80,0:ink RGB(81,73,21),RGB(255,0,120)
position camera 0,5,-20
start:
inlevel=2
if inlevel=0 then goto level1
if inlevel=1 then goto level1
if inlevel=2 then goto level2
level1:
for c=1 to 10000
if object exist (c)
delete object c
phy delete rigid body c
endif
next c
make object sphere 1,20
position object 1,-30,2040,-40
phy make rigid body dynamic sphere 1
make object cube 5,20
position object 5,730,1659,600
color object 5,RGB(135,140,40)
phy make rigid body static box 5
load object "Maps\map1.x",2
make object box 3,2000000,1,2000000
position object 2,0,2000,0
position object 3,0,800,0
rotate object 2,90,0,0
scale object 2,5000,5000,5000
ghost object on 2,1
for c=2 to 3
if object exist (c)
phy make rigid body static mesh c
endif
next c
goto mainloop
level2:
for c=1 to 10000
if object exist (c)
delete object c
phy delete rigid body c
endif
next c
make object sphere 1,20
position object 1,0,1063,0
phy make rigid body dynamic sphere 1
make object cube 5,20
position object 5,730,1659,600
color object 5,RGB(135,140,40)
phy make rigid body static box 5
load object "Maps\map2.x",2
make object box 3,2000000,1,2000000
position object 2,0,1000,0
position object 3,0,-800,0
rotate object 2,90,0,0
scale object 2,5000,5000,5000
ghost object on 2,1
for c=2 to 3
if object exist (c)
phy make rigid body static mesh c
endif
next c
goto mainloop
mainloop:
do
text 1,1,str$(x)
text 1,10,str$(y)
text 1,20,str$(z)
phy add rigid body force 1,0,-5,0,2
x=object position x(1)
y=object position y(1)
z=object position z(1)
angx=object angle x(1)
angy=object angle y(1)
angz=object angle z(1)
position camera 0,object position x(1),object position y(1)+200,object position z(1)
point camera 0,object position x(1),0,object position z(1)
if upkey()=1 then phy add rigid body force 1,0,0,5,2
if downkey()=1 then phy add rigid body force 1,0,0,-5,2
if leftkey()=1 then phy add rigid body force 1,-5,0,0,2
if rightkey()=1 then phy add rigid body force 1,5,0,0,2
if spacekey()=1 then phy add rigid body force 1,0,10,0,2
if inkey$()="s" then savegame()
if inkey$()="l" then loadgame()
if object hit (1,3)
goto start
ENDIF
if object exist (5)
if object hit (1,5) and inlevel=0 or inlevel=1
goto level2
endif
endif
phy update
sync
loop
function savegame()
if file exist ("savegame.dat")=1 then delete file "savegame.dat"
open to write 1,"savegame.dat"
write long 1,inlevel
wait 1000
close file 1
endfunction
function loadgame()
if file exist ("savegame.dat")=1
open to read 1,"savegame.dat"
read long 1,inlevel
wait 1000
close file 1
endif
endfunction
Please... if you NEED the application + .x files of the maps I will provide later.
I want coke, not Pepsi!