Some information has already been answered... I'm not changing my post, sorry. I do hope the information i give is better then Inglor's-- I mean offers a reasonable alternative to the generously given answers that were given before ;)
At 10/11/04 10:47 PM, Twistedsoulman wrote:
Now , where do I find the action script codes for the other keys on the key board?
Press F1 for the flash help and do a search on ASCII. It should bring up a list for all the keys and their corresponding numbers.
Also, this I'm guessing will be harder... how do I make that kick that my guy can now do connect with another movie clip and make the guy die or something?
Make a MC called "foothitTest" where the kick action is playing. Then, on an enemy put something like this:
onClipEvent(enterFrame){
if(this.hitTest(_root.hero.foothitTest)){
this.gotoAndPlay("Die");
}
}
Make sure there is a string of frames in the enemy that show it dying.
At 10/12/04 06:17 PM, 1DarKneSS wrote:
...I just need the script plz.
Put this on the stage:
onEnterFrame=function(){
if(Key.isDown(Key.SPACE) && !spress){
spress=true;
score += 5;
}
if(!Key.isDown(Key.SPACE)){
spress=false;
}
};
I set it up so that the player has to hit the key to get points rather then just holding the key down.
At 10/13/04 12:02 AM, Frenchi wrote:
healthbar troubles...
Well, did you try placing the health variable on the health bar rather then the soldier itself? That way all you have to do is something like this if the soldier gets hit:
this.hitTest(_root.enemy){
healthbar.health -= 5;
}
Then, on the health bar all you have to do is:
this._xscale = health;
It's better to change the x scale rather then having individual numbers to individually change the length of the bar.
At 10/13/04 01:58 PM, Twistedsoulman wrote:
Arg!
Just make it so that once the kicking animation ends the MC goes to the idol frame of the MC. Like once the mc gets to the last frame of an animation it goes to the first frame.