by speckford123 » Wed Dec 26, 2007 3:26 pm
i didnt memorize code so this is probably wrong but try something like this,
create a variable like randanim, and on your key down event try this
randanim=rand(5); // the number in rand needs to be how many animtions you have, including 0.
if(randanim==0)changeanimation("actor","animation 0",FORWARD); // the changeanimation is wrong (I think) you need to fix that
else if(randanim==1)changeanimation("actor","animation 1",FORWARD);
else if(randanim==2)changeanimation("actor","animation 2",FORWARD);
else if(randanim==3)changeanimation("actor","animation 3",FORWARD);
else if(randanim==4)changeanimation("actor","animation 4",FORWARD);
else if(randanim==5)changeanimation("actor","animation 5",FORWARD);
something like that