Progress towards next big Clashflash update:
AuthorMessage
reaven
avatarposts
Excelling Guardian
Level: 20 - Posts: 312
Joined: Dec 11, 2008
Hi.

Thanks for the reply.

i have the fire weapon function and inserted the enemyindex
Code:
function fireWeapon2(enemyIndex):Void {
  
  //trace('enemy '+i+' shootingout!');
  //for (var i = 0; i<enemyArray.length; i++) {
  //check if weapon is reloaded & mouse is clicked 
  //if true, create bullet
  //trace('enemy '+i+' shooting!in');
    if(enemyArray[enemyIndex].enemyWeapon.reloadComplete2) {
      enemyArray[enemyIndex].weapon.play();
      trace('enemy '+i+' shooting!');
      createBullet2(enemyIndex);
      bulletoutplace2(1);
      }
  //}
}


but with the update position i cant make sense of it
cry cry cry ive been working on it for a couple of hours but it is a waist of time i cant do this doesnt matter how hard i try im just changing something and hoping it works and thats not how it supposed to go.

i know some thng of action script but im far! away from what you can do.

i dont know anything of arrays i only know the for var i..
i got my self a actionscript book 2.0 and 3.0 and i will read all the things about the arrays and i hope i know some more next time..

i dont like it to ask everything everytime but if you dont know things you dont realy have a choice sad ..

so do you want to point me in the right direction with the updateposition? i only need to know ow to implant the enemy index *normal happy smiley but still angry about he cant so this himself*

Greet

Reaven


picture
<< Go to page: 1, 2, 3, 4, 5, 6 >
There are a total of 3152 Clashflash.com members who have posted 7266 articles. Our newest registered user is Hooooda7, welcome!
There are currently 10 users online of whom 0 logged in and 10 guest(s).
auto ban