Ok i have this code and i want it so if u r not doing anything the ninja is idle. if u press a directional button he moves and it plays his walking animation. and finally if u press enter he will attack. this is my code so far.
set display mode 1024,768,16
hide object 1
LOAD OBJECT "Ninja\H-Ninja-Attack1.3DS",2
SCALE OBJECT 2,300,300,300
YROTATE OBJECT 2,180
FIX OBJECT PIVOT 2
LOOP OBJECT 2,5,25
hide object 2
DO
if upkey()=1 then move object 1,1
if downkey()=1 then move object 1,-1
if rightkey()=1 then yrotate object 1,45
if leftkey()=1 then yrotate object 1,0
if upkey()=1 then show object 1
if downkey()=1 then show object 1
if rightkey()=1 then show object 1
if leftkey()=1 then show object 1
if returnkey()=1 then show object 2
if returnkey()=1 then hide object 1
if returnkey()=1 then play object 2
if upkey()=1 then hide object 2
if downkey()=1 then hide object 2
if rightkey()=1 then hide object 2
if leftkey()=1 then hide object 2
else
show object 3
LOOP
Is ther a simpeler way of doing it? and also some times it says "error object 2 does not exist"

but it does?? Can any one help me. Cheers
By the way i am a bit of a newbie
If nobodys perfect then im nobody!