✔ 最佳答案
大大好,我不太確定你的意思,看看是不是下面這樣
一、在第一行加這句
var bn:uint = 1;
二、在shoot函數加一行
function shoot(event:MouseEvent):void
{
var bullet:bulletmc = new bulletmc();
bullet.x = me.x + 25;
bullet.y = me.y - 100;
bullet.gotoAndStop(bn); //在這加一行
.............
三、在hitTest3函數加兩行
function hitTest3(event:Event):void
{
var a:uint = 0;
var b:uint = 0;
var me:memc = null;
var tool:toolmc = null;
for (a = 0; a < meArea.numChildren; a++)
{
me = meArea.getChildAt(a) as memc;
for (b = 0; b < toolArea.numChildren; b++)
{
tool = toolArea.getChildAt(b) as toolmc;
if (tool.hitTestObject(me))
{
bn++; //在這加一行,變數bn加1
bn = (bn-1)%4+1;//在這加一行,讓bn在1~4間循環
.....................