Create movieclip on pressing spacebar (.fla inside)
Here's my situation: I have a flash with a guy that can move left and right (Movieclip name: hero)
In the library i have a movieclip of a fireball shooting upwards (fireball)
This is the effect im trying to accomplish in essence: Whenever you push spacebar a movieclip is created (fireball) in the same position Another movieclip is currently in (hero). The ways i've managed it the fireball keeps following the hero left and right after it's created. But the idea is that once the Movie clip is created it'll be completely independant of the hero.
Oh, and im looking for a possibility of this only being possible every 2 or 3ish seconds (as not to be able to spam fireballs)
I've included the current .fla that i have with all the stuff in it. If anyone could help me out it would be very appriciated! Using Flash8
if (_root.hit.hitTest(x, y, true)) { } else { _x = x; _y = y; } if (_root.hit.hitTest(x, y, true)) { } }
then give your Fireball movieclip a Linkage name of fireball -- and lastly, on the last frame of your Fireball movieclip, type this code on the Frame:
Code:
removeMovieClip(this);
I'm sorry that I haven't really explained any of my modifications to the code -- it's just that there's a lot to explain if I did it, but if you really want an explanation, just say so and I'll try my best to make the code understandable
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS