Hello, i am having problems loading a .x model (that I made in Milkshape) into dbpro. I made animation for it in milkshape and it was exported with the model in the .x file. Can anyone tell me what I am doing wrong.
Here is how the model looks in milkshape 3d :
Here is how it looks after I compile my code and run my program in dbpro:
Finally here is my code :
Rem Project: test load door
Rem Created: Tuesday, August 23, 2011
Rem ***** Main Source File *****
load object "E:\programing tools and files\models with animations\door that can open\doorwoa.x", 1, 5
//position object 1, 0,0,0
//xrotate object 1, -90
set object frame 1,0
doorstate = 0
do
if keystate(57)=1
if doorstate = 0
play object 1, 1, 30
doorstate = 1
goto exit1
endif
if doorstate = 1
play object 1, 31, 59
doorstate = 0
goto exit1
endif
ENDIF
exit1:
loop
Any help would be greatly appreciated. I have no idea why it isnt working.
Thank you
[email protected]