PDA

View Full Version : Help please with character animations flash 8



dreadbolt
07-15-2009, 08:45 AM
Hey, im having trouble with animating my character. using AS2.

so far ive succeeded with walking left/right with animation, but i cant find a way to get an attacking animation to work on a keypress (spacebar). ive tried using variables and if statements, but they didnt work.

ive got my fla and as files attached. has ne1 got any ideas on making this work?


182

Akshay_237
07-28-2009, 12:33 PM
hey there,
plz help me

m presently working on flash8. i have created a game almost complete. but the main problem m facing is as follows....

actually in my game i have stage1 in frame 15 and stage2 in frame 30,the game over screen is in frame 35.
i have setup a counter for life of the player.

what i need to do is when life=0 then frame 35 should be played.

i have used following code for that...

onClipEvent(load){

life=3;
.....other variables....
}

onClipEvent(enterFrame){
if(_root.enemy.hitTest(this)){
life--;
if(life==0){
gotoAndPlay(35);
}
}

....other code of game
}

but its not working...
how to go to frame 35
all the above code is in " ball "(the player) movie clip
plz help

mdmd
08-08-2010, 11:24 AM
Thank you so much for this clarifications