well thanks for ure help but ure moving system doesnt work right...the object keeps moving until u press up...and that makes everyhing stop...and if possible i want to keep mine...but it wont let him go anywhere...hes running in space
i know cuz i have the matrix... heres my code can u fix it to where he can move around but have the camera still follow him? and have him facing the right direction in the right animation? t/y ahead of time...
edit oh yathe code...
hide mouse
rem make a floor
MAKE MATRIX 1,1000,1000,10,10
rem Load 3D object and append walking data to it
LOAD OBJECT "Ninja/H-Ninja-Idle.x",1 : append object "Ninja/H-Ninja-Move.x",1,26 : append object "Ninja/H-Ninja-Attack1.x",1,51
YROTATE OBJECT 1,180 : FIX OBJECT PIVOT 1
rem Loop 3D object animation from 1 to 25 (idle)
LOOP OBJECT 1,1,25 : SET OBJECT SPEED 1,60
rem tell object where to spawn
position object 1,0,0,20
rem Activate manual syncronization
SYNC ON : sync rate 60
rem Begin loop
do
rem Modify character angle based on left/right keys
stage=0
IF LEFTKEY()=1 THEN a#=a#-4.0
IF RIGHTKEY()=1 THEN a#=a#+4.0
a#=wrapvalue(a#)
rem Modify character position based on up/down keys
IF UPKEY()=1 THEN x#=NEWXVALUE(x#,a#,.1) : z#=NEWZVALUE(z#,a#,.1) : stage=1
IF DOWNKEY()=1 THEN x#=NEWXVALUE(x#,a#,-.1) : z#=NEWZVALUE(z#,a#,-.1) : stage=1
rem Attack if spacebar is pressed
IF SPACEKEY()=1 then stage=2
rem If character action changes
IF stage<>oldstage
IF stage=0
SET OBJECT FRAME 1,0.0
LOOP OBJECT 1,1,25
SET OBJECT SPEED 1,60
ENDIF
IF stage=1
SET OBJECT FRAME 1,0.0
LOOP OBJECT 1,31,50
SET OBJECT SPEED 1,60
ENDIF
IF stage=2
LOOP OBJECT 1,51,75
SET OBJECT SPEED 1,60
ENDIF
oldstage=stage
ENDIF
rem make camera follow player (object one)
x#=object position x(1)
y#=object position y(1)
z#=object position z(1)
position object 1,x#,y#,z#
set camera to follow x#,y#,z#,10,5,1,10,10
rem Update character position and angle
POSITION OBJECT 1,x#,0.0,z#
YROTATE OBJECT 1,a#
sync : loop