Sorry to ask this in a new forum, but I asked it at the tail end of my other thread, which is basicaly now dead. I have tried to simply load an object from DarkMATTER (in idle) in to the Monster Hunt tut after attempts to code it the way it was presented on the site. After several attempts, I decided that I would be happy to just make my little sphere guy on a matrix with some fog and a backdrop, and then load the idle image of him in just so I could see him. I figured that this would be a good step after making the matrix with a third person perspective and fog.
All I get is a
tiny little flashy polygon or two laying on the ground where the loaded object should be. Hmmm, what am I doing wrong? Code:
sync on
sync rate 30
backdrop on
set camera range 1,5000
fog on
fog distance 4000
fog color rgb(128,128,128)
color backdrop rgb(128,128,128)
make matrix 1,10000,10000,20,20
load image "rustyIron.bmp",1
prepare matrix texture 1,1,1,1
fill matrix 1,0,1
load image "volcan01.bmp",2
make object sphere 10,25
texture object 10,2
position object 10,100,0,100
randomize matrix 1,125
load object "L-Alien Mutant-Idle.x",5
loop object 5
position object 5,150,get ground height(1,150,150),150
do
set cursor 0,0
print screen fps()
aY#= object angle y(10)
if upkey()=1
xtest#=newxvalue(x#,aY#,20)
ztest#=newzvalue(z#,aY#,20)
if xtest#>0 and xtest<10000 and ztest#>0 and ztest#<10000
move object 10,10
endif
endif
if leftkey()=1 then yrotate object 10, wrapvalue(aY#-5)
if rightkey()=1 then yrotate object 10, wrapvalue(aY#+5)
x# = object position x(10)
z# = object position z(10)
y# = get ground height(1,x#,z#)
position object 10,x#,y#+12.5,z#
cameraz# = newzvalue(z#,aY#-180,100)
camerax# = newxvalue(x#,aY#-180,100)
cameray# = get ground height(1,camerax#,cameraz#)
position camera camerax#,cameray#+50,cameraz#
point camera X#,Y#,Z#
sync
loop
I tried it with Get Ground Height and without, so I guess that is not the problem. I am using DBpro for a DBC tut, which may be the problem, but I am not quite sure. Any help is greatly appreciated!
Fraggles where quite the scary lot...