1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
//constructor
public function warrior(Id:Number, LifeMax:Number, ManaMax:Number, Armour:Number, Lvl:Number ){
super(Id, LifeMax, ManaMax, Armour, Lvl);
this.m_Force = 15;
this.m_MovementSpeed = 10;
//this.setMc();
trace("un warrior a été créer");
}
//affecter un Mc à toutes ces variables
private function setMc():Void{
// Attaches a new movie clip and moves it to an x and y coordinate them
this.attachMovie("Mc_OverWorld_Warrior", "Mc_Client" +dep, dep, {_x:250, _y:200});
this._visible = m_Leader;
} |
Partager