Duplicating mc's with keys

hi, im looking for some help on duplicating mc’s with keys instead of the mouse. ive been working with flash for quite some time, and i think im pretty good. i have about 13 submissions on newgroundw with descent scores, and 2 of them are even in an archive. im kinda new with actionscript though, ive been learning for about a month now. but im kinda on and off. so can anyone help me on duplicating mc’s with keys?

this is wat i have.

onClipEvent (keyDown) {
if (Key.isDown(SPACE)) {
i = i + 1;
duplicateMovieClip (_root.box, “box” + i, i);
}

thnx ahead of time.

I have a small side scrolling game that I made that uses key presses to duplicate the bullets the guy shoots. If you would like a copy to look through, let me know. I know a few people have used it on this forum and have found it helpful.

sure, ill be entirely greatful if u cud do that. thnx

I’ve never used onClipEvent(keyDown) but i’m sure this will work.
Use this:

onClipEvent(enterFrame){

Have you tried moving the new boxe’s ._x and ._y to get them to a new location…

Also check to make sure your function is working by including a trace in it… :slight_smile: