questions about OOP
good day to everyone, I'm working on a enemy class now the idea i have is to give it a enemyUpdate methode to make it move on it's own using a while loop
<code>
public function updateEnemy():void
{
var i:int =0;
while(i > 30)
{
this.PositionX = +10;
}
}
</code>
Ok so i figured out its partly caused because i'm not increasing "i" in my loop
Now my problem is i the line of code above doesnt properly move the enemy why so?
Thanks for the info