flipping character movieclip to shoot
actionscript 2.0
Got a charcter movie clip(guy) on frame 1, inside the symbol are 2 more clips for left(guyl) and right(guyr) movement. i placed the code to shoot on frame 1 of the original movie clip and the character shoots to the right but when turned to the left the bullet clip continues to come from the right. so then i tried inserting the code to shoot on the movieclips inside the symbol(the left and right symbols) but the bullet stays at the top left of the screen. any help/suggestions? thanks.
code for bullet
this.onEnterFrame=function()
{
this._x +=12;
if (this._x>550)
{
this.removeMovieClip();
}
}
code to shoot
var i=1;
if(Key.isDown(Key.SPACE))
{
i++;
_root.attachMovie("bullet","bullet"+i,_root.getNextHighestDepth());
_root["bullet"+i]._x=guyr._x+35;
_root["bullet"+i]._y=guyr._y-5;