Hi everyone!
I am using bsp maps in my darkbasic game. The wall collisions work so good, but I think I have found a bug in my game. Watch this video(http://www.youtube.com/watch?v=dmZjaj3sy6I&), because I do not know how to explain the error hahahahahahaha. I am doing this project with a friend, and we have the same game code, but in his computer there is not a bug like this one. Well, see you soon in the forum, and thank you! Sorry for my English
. I enclose a part from the code which has the bsp collisions
Miko=1 : load object -roomdemo.x-,Miko
rotate object Miko,270,0,0
position object Miko,-140,-95,0
fix object pivot Miko
make object collision box Miko,-45,0,-45,45,155,45,1
scale object Miko,50,50,50
loop object Miko,0,7000
set object speed Miko,10000
make object cube 2,100
position object 2,0,-40,80
make object sphere 3,80
position object 3,100,-50,1000
color object 3,rgb(0,255,0)
sc_setupobject miko,2,2
sc_setupobject 2,miko,2
Heroframes#=total object frames(1)/200.0
rem first room--------------------------
load bsp -hab1.pk3-,-hab1.bsp-
set bsp object collision 10,Miko,20,0
set bsp object collision 20,2,20,1
make object cone 4,25
position object 4,86,-60,500
make object cube 5,200
position object 5,700,10,180
color object 5,rgb(255,0,0)
sc_setupobject 3,miko,2
sc_setupobject 4,miko,2
sc_setupobject 5,miko,2
PAIV IS COMIN'