can anyone tell me please why this object insist on not to play the falling animation when pressed on the control key?
by the way this is the player model of the alien competition,nothin to compete but just the only animated model i have
player_motion_1:
angle#=object angle y(1)
if upkey()=1 then move object 1,move : walk = 1 : idle = 0
if downkey()=1 then move object 1,-move : walk = 1 : idle = 0
if leftkey()=1 then yrotate object 1,wrapvalue(angle#)-1
if rightkey()=1 then yrotate object 1,wrapvalue(angle#)+1
if controlkey()=1 then fall=1 : walk = 0 : idle = 0
if walk = 1
set object speed 1,100 : loop object 1,670,720
else if idle = 1
set object speed 1,50 : loop object 1,0,100
else if fall = 1
play object 1,100,150
endif
endif
endif
walk = 0 : idle = 1 : fall = 0
x#=object position x(1)
z#=object position z(1)
y#=get ground height (1,x#,z#)
position object 1,x#,y#,z#
set camera to follow x#,y#,z#,angle#,150,objsizey#+15,25,0
return