i changed the code up a little bit with the limb stuff in there and it's not working. I checked if the limb exist and it did(to make sure i wasnt using the same object number twice.) So i dont know what to do. I messed around with it for a while and couldnt figure it out. This is the code that i have now(with the limb stuff) I hope you can spot what i'm doing wrong...because i cant.
Rem Project: first fps
Rem Created: 7/7/2005 10:24:07 PM
Rem ***** Main Source File *****
remstart
////////////////////////////////////////
"first fps"
by: gpex
started: 7/07/05, 10:25 p.m.
completed:
////////////////////////////////////////
remend
`sets up the screen
sync on
backdrop on
set display mode 1280,1024,32
position camera 0,0,-1000
`loads up the media
load image "floor02.bmp",2
load image "crasshair.bmp",4
load object "tester.x",2
load object "armsandgun.x",1
make object triangle 3,0,0,0,0,0,0,0,0,0
make object triangle 98,30,0,0,0,30,0,0,0,30
make mesh from object 1,98
delete object 98
add limb 3,1,1
offset limb 3,1,10,-20,10
delete mesh 1
hide limb 3,1
`textures abd positions the media
position object 2,0,-200,90
texture object 2,2
`misc...
hide mouse
`start main loop
do
`gets the mousex & y coordinates
lookx# = mousex()
looky# = mousey()
`if mousex moves then increase lookx variable by eight and wrap it to keep it within range
if mousemovex() > 0
inc lookx#
lookx# = wrapvalue(lookx#)
endif
`if mousey moves then increase looky variable by eight and wrap it to keep it within range
if mousemovey() > 0
inc looky#
looky# = wrapvalue(looky#)
endif
strafe1# = lookx# - 90
if keystate(17) = 1 then movez# = newzvalue(movez#,lookx#,1) : movex# = newxvalue(movex#,lookx#,1)
if keystate(31) = 1 then movez# = newzvalue(movez#,lookx#,-1) : movex# = newxvalue(movex#,lookx#,-1)
if keystate(30) = 1 then movez# = newzvalue(movez#,strafe1#,1) : movex# = newxvalue(movex#,strafe1#,1)
if keystate(32) = 1 then movez# = newzvalue(movez#,strafe1#,-1) : movex# = newxvalue(movex#,strafe1#,-1)
`update camera
yrotate camera lookx#
xrotate camera looky#
position camera movex#,movey#,movez#
position object 3,movex#,movey#,movez#
gunx# = limb position x(3,1)
guny# = limb position y(3,1)
funz# = limb position z(3,1)
`update object
position object 1,gunx#,guny#,gunz#
`sync and loop
sync
loop
-gpex-
(and i'm using the DBP trial...that wouldnt have anything to do with it would it?)
***EDIT***
ok, so now i wrote the values of the limb positions to a file and it was 0,0,0. I just thought that i would throw that out there.