MY BIG PROBLEM

Non-platform specific questions.

MY BIG PROBLEM

Postby raminkhan » Fri Dec 30, 2011 6:15 am

hey guys does anybody has a solution for this especially Mr. Sky I need your help.
please see the attachment.
Attachments
myProblem.png
raminkhan
 
Posts: 63
Joined: Mon Sep 12, 2011 3:35 pm
Score: 0 Give a positive score

Re: MY BIG PROBLEM

Postby phyzix5761 » Fri Dec 30, 2011 6:52 am

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;
}

phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest