pitto
04-29-2005, 12:08 AM
Here is the code i have already made for this part
// create enemies
function createEnemy() {
if (noenemya>0) {
current = "enemya"+noenemya;
attachMovie("enemya", current, 100+noenemya);
noenemya--;
}
}
This makes the enemy (in the librery set as enemya) get put in the top corner, the noenemya is set to one at the start, later i will make it so that the enemies are put in at random times, and there will be more enemies.
Now i want to move it to the x value of 600, and then i will create the move function. I cant seem to get the enemy to move to 600, can someone help?
Pitto
// create enemies
function createEnemy() {
if (noenemya>0) {
current = "enemya"+noenemya;
attachMovie("enemya", current, 100+noenemya);
noenemya--;
}
}
This makes the enemy (in the librery set as enemya) get put in the top corner, the noenemya is set to one at the start, later i will make it so that the enemies are put in at random times, and there will be more enemies.
Now i want to move it to the x value of 600, and then i will create the move function. I cant seem to get the enemy to move to 600, can someone help?
Pitto