i need an Ai for an enemy actor to hover over the player whilst swaying side to side and shooting at the player
+1 to best reply
switch(dir)
{
case 0:
if(x>player.x+100)
{
dir=1;
xvelocity=-5;
}
break;
case 1:
if(x<player.x-100)
{
dir=0;
xvelocity=5;
}
break;
}
Users browsing this forum: No registered users and 1 guest