hello people,
ive got a problem with my character. he always faces at the camera and dosnt face infront of him. ive tried "rotate object","yrotate object" and even "point object" but it dosnt work. so here's the code i'm using:
sync on: sync rate 0:
`autocam off
make matrix 1,10000.0,10000.0,25,25
randomize matrix 1,50.0
set matrix height 1,12,12,300.0
update matrix 1
load object "h.3ds",1
yrotate object 1,90
scale object 1,600,600,600
position object 1,0,0,0
do
posx#=object position x(1)
posy#=object position y(1)
posz#=object position z(1)
if upkey()=1 then move object 1,1
if downkey()=1 then move object 1,-1
if rightkey()=1 then yrotate object 1,wrapvalue(object angle y(1)+3)
if leftkey()=1 then yrotate object 1,wrapvalue(object angle y(1)-3)
angle#=object angle y(1)
camdist#=15.0 : camhigh#=posy#+10.0 : camfade#=3.5
set camera to follow posx#,posy#,posz#,angle#,camdist#,camhigh#,camfade#,0
xrotate camera 15
sync
loop
‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)