thanks cafari but i have now encounted another problem! When i hold the upkey and the left or right key 2 move diagonlly it goes slower and the animation stops so hes gliding it was working fine before but the new code its stopped anyhelp? asi cant see what went wrong
`movement
if upkey()=1 : move object 1,MSframe#: loop object 1,2,14 : play music 2 : loop music 2
endif
if downkey()=1:move object 1,-MSframe#:loop object 1,2,14 : play music 2 : loop music 2
endif
if leftkey()=1:dec a#,TSframe# : loop object 1,2,14 : play music 2 : loop music 2
endif
if rightkey()=1:inc a#,TSframe# : loop object 1,2,14 : play music 2 : loop music 2
endif
if mouseclick()=1:loop object 1,128,142
endif
yrotate object 1,a#
if upkey()=0 + downkey()=0 + leftkey()=0 + rightkey()=0 + mouseclick()=0
stop music 2:loop object 1,75,88
endif