ok, fixed
but now everytime I look up with the mouse and press upkey at the same time my model fly away, I mean it still attached to the camera but its like use "Noclip" cheat in half life, I can fly
EDIT: Its like no gravity
How can I put the feet in the ground and stay there?
Thank you in advance
Rem jugador
hide mouse
rem carga el arma
sync rate 60
make object cube 2,100
scale object 2,20,20,100
Load object "Desert eagleHUD.X", 1
scale object 1,400,400,400
Rotate object 1,-175,-20,200
lock object on 2
Position object 1 ,100,30,100
fix object pivot 1
disable object zdepth 1
Fog on
make light 1
color light 1,255
position light 1,100,30,100
MAKE MATRIX 1,2500,2500,10,10
rem bucle principal
do
x#=OBJECT POSITION X (1)
y#=OBJECT POSITION Y (1)
z#=OBJECT POSITION Z (1)
RatonX=MousemoveX()
RatonY=MousemoveY()
If upkey()<>0
move object 1,1
andando=1
Endif
if downkey()<>0
move object 1,-0.5
andando=1
endif
if rightkey()<>0
move object right 1,0.5
andando=1
endif
if leftkey()<>0
move object left 1,0.5
andando=1
endif
if andando=0
Stop object 1
else
Loop object 1,21,45
endif
andando=0
if ratonX> 0
ay#=ay#+1.5
rotate object 1,ax#,ay#,az#
Endif
if ratonX< 0
ay#=ay#-1.5
rotate object 1,ax#,ay#,az#
endif
if ratony>0
Ax#=ax#+1
rotate object 1,ax#,ay#,az#
endif
if ratonY<0
AX#=AX#-1
rotate object 1,ax#,ay#,az#
endif
SET CAMERA TO FOLLOW x#,y#,z#,ay#,0,20,4,1
SET CURSOR 0,0
PRINT "FPS:"; SCREEN FPS ()
loop
Intel Pentium core 2 duo T6600 2,6 mhz 4mb, 4 gb ram 600 mhz ddr2, ATI X1650 radeon
http://www.freewebs.com/raycosantana/