Page 1 of 1

MY BIG PROBLEM

PostPosted: Fri Dec 30, 2011 6:15 am
by raminkhan
hey guys does anybody has a solution for this especially Mr. Sky I need your help.
please see the attachment.

Re: MY BIG PROBLEM

PostPosted: Fri Dec 30, 2011 6:52 am
by phyzix5761
Do this

1.Make a variable called decision.
2.Make a timer called decisionTimer. Set it to random intervals
3.Every time the timer is called up have it do:

decision = random(3)+1; //3 being how many decisions you want it to make

4.In the draw event of the enemy ball write this:

Code: Select all
switch(decision)
{
  case 1:
    //move to a random position for example
    break;

case 2:
   //follow player
   break;

case 3:
   //do something else
   break;
}