GetObjectIsAnimating is the default code for is it playing. There is no getobjectplaying and getobjectanimationtime just records the time it started playing but I did figure this out guys and thank you.
I guess in AppGameKit you do not need to stop a animation to start a new one so just playing the attack anim with no flag works.
+ Code Snippet PlayerAnim=GetObjectIsAnimating(player)
if GetRawKeyState(38) or getjoystickx()>0
MoveObjectLocalZ(player,speed#)
if moving = 0
PlayObjectAnimation(player,"",266,303,1,0.30) // run forward
SetObjectAnimationSpeed(player,60)
moving=1
idle=0
endif
endif
if GetRawKeyState(40)
MoveObjectLocalZ(player,-speed#*0.34)
if moving = 0
PlayObjectAnimation(player,"",596,620,1,0.1) // walk back
SetObjectAnimationSpeed(player,60)
moving = 1
idle=0
endif
endif
if GetRawKeyState(38)=0 and GetRawKeyState(40) =0 then moving = 0
if moving = 0 and idle=0
PlayObjectAnimation(player, "", 236,265, 1, 0.30 ) // idle
SetObjectAnimationSpeed(player,60)
idle=1
endif
if GetRawMouseLeftReleased() and GetRawKeyState(38) =0
PlayObjectAnimation(player, "", 160,189, 0, 0.3 ) // Attack
SetObjectAnimationSpeed(player,80)
endif
if GetRawMouseLeftReleased() and GetRawKeyState(38) =1
PlayObjectAnimation(player, "", 160,189, 0, 0.1 ) // Attack
SetObjectAnimationSpeed(player,80)
endif
if PlayerAnim=0 and GetRawKeyState(38)=1 then moving = 0
if PlayerAnim=0 and GetRawKeyState(38)=0 then idle=0