So me and my friend are making a game for an assignment and we've run into a problem.

The game is like a Galaga style game. So what we want to do is every time we hit the 'fire' button, we want an animation to play. For example our main character is a chef throwing forks up at meatballs, and we want his arm to move ONLY when we hit the 'fire' key. We already have the animation for the arm.

Any help would be great.

Oh and our teacher doesn't know how to do it so don't say "ask your teacher"
Message me if you want a Band Logo.

<('.'< <( '.' )> (>'.')>

I also do cover art and shirt designs, I can also print the shirts and send them to you for some $$$.
Your teacher sucks.
So do alot of ict teachers these days now that i think about it..
Fender Special Edition Custom Telecaster FMT HH in Crimson Red
Reverend Sensei HB FM in Tobacco Burst
Fender Vintage C Neck, HH, Surf Green Nitrocellulose (Handmade)

Egnater Rebel-30 MKI Head
Egnater Tourmaster Series 412B 280W 4x12 Cabinet
Right i cant remember the actual code but itll be something like this:

When the key F(for example) is shot

gotoandplay(frame number of symbol here)
Ibanez GRG170DX
Bluerock Begginers Strat
Fender Acoustic
Bluerock Begginers 10W Amp
Lne 6 Spider 3 15
Gear to come
Les Paul Copy(Fixing up to be good)
if(Key.isDown && !attack(INSERT KEY HERE){

then stick on the last frame of the attack clip attack=0

or if you want it to continue if you take your finger off the key have;

if(Key.isDown && !attack(INSERT KEY HERE){

if (attack){

and still have attack=0 on the last frame
My Band =]
We play some goffic pish
Its fun

Leave us a comment, we'll get back to you =]
Last edited by FNAFJ at Feb 12, 2009,