hi I'm making a game and I'd like to know how to make an enemy that wanders around an area aimlessly.
but the enemy only moves on an x axis
originalx = x;
if(direct==0)
{x+=2;}
if(direct==1)
{x-=2;}
if(x<originalx-200)
{direct=0;}
if(x>originalx+200)
{direct=1;}
sunnybubblegum wrote:Implementing the look script would be helpful to me, if it's not too much trouble.
Users browsing this forum: No registered users and 1 guest