TFatality
05-15-2004, 05:07 PM
I have a "ship" mc that is automatically draggable from the start, and a "shot" mc, and a "target" mc.
_root.bg.onEnterFrame = function() {
if(Key.isDown(Key.UP)){
_root.t.duplicateMovieClip("target"+I,I)
_root["target"+I]._x = random(550)
_root["target"+I]._y = 0
if(I<20){I++}
else {I=1}}}
this is to create the targets.
_root.bg.onPress =function()
{
_root.shot.duplicateMovieClip("shot"+i,i)
_root["shot"+i]._x = _root.ship_mc._x-(_root.ship_mc._width/2+15)
_root["shot"+i]._y = _root.ship_mc._y-430
if(i<50){i++}
else {i=1}}
this is to create the bullets.
The problem is, if I press Up at the start and hold it down for about a second, then press the mouse button a few times, the "target" MCs start disappearing!! Can anyone give me some help?
_root.bg.onEnterFrame = function() {
if(Key.isDown(Key.UP)){
_root.t.duplicateMovieClip("target"+I,I)
_root["target"+I]._x = random(550)
_root["target"+I]._y = 0
if(I<20){I++}
else {I=1}}}
this is to create the targets.
_root.bg.onPress =function()
{
_root.shot.duplicateMovieClip("shot"+i,i)
_root["shot"+i]._x = _root.ship_mc._x-(_root.ship_mc._width/2+15)
_root["shot"+i]._y = _root.ship_mc._y-430
if(i<50){i++}
else {i=1}}
this is to create the bullets.
The problem is, if I press Up at the start and hold it down for about a second, then press the mouse button a few times, the "target" MCs start disappearing!! Can anyone give me some help?