hi guys,
im making a webcam flash game atm, its a ninja game, like the playstations eyetoy game, i have ninjas come from left and right, i am using script to place the ninjas from the library to the stage they are called Template2player,targetTemplate,targetTemplate3player, 3 ninjas in total. now the problem is placing them in the right position eg(one comes from the top of the building, one on the ground, one on level 2 etc)
i placed the ninjas in an array (targetList and added the positions i wanted them to appear.
my code looks like this
if(!gameOver) {
targetCounter ++;
targetList = ["targetTemplate2player, _x: 38, _y: 80 " , “targetTemplate, _x: 60, _y: 140”, “targetTemplate3player, _x: 210, _y:15”];
var randomNum = random(3);
var someTarget:String = targetList[randomNum];
var target:MovieClip = targets.attachMovie(someTarget, “Target” + targetCounter, this.getNextHighestDepth()+1000+targetCounter);
target.myNum = targetCounter;
num:target.myNum};
}
}
now can someone help me, the ninjas are not showing on the stage, is there something i missed in the code??? or do i have to place the positions of the ninjas elsewhere
plz help
cheers