Quote: "pretty much some basic AI help thanx"
Unfortunately, there isn't really any such thing. AI (or Artificial Intelligence) is - or can be - a very complex subject and not the sort of thing you can expect to be covered to any decent level in a forum post.
With DBC it basically boils down to creating a series of procedures or functions which do AI checking before
any object is moved.
Take the game of Pong which has probably the simplest form of AI you can have...
With AI for the CCP, the new position for the paddle is calculated based on the current status of things going on in the game - for example the current ball's Y screen position.
So, if the paddle is at Y=300 and the ball is at Y=40 then the paddle needs to be moved upwards towards the ball's Y position. You therefore need to deduct 5 from the paddle's Y position.
However if the ball was at Y=580 then the AI routine would ADD 5 to the paddle position to move it
down the screen.
If this is done each time the ball moves, the paddle appears to have some form of intelligence and be 'playing the game'.
Obviously, this method results in an unbeatable opponent, so you can decrease the CCP's paddle movement speed to give it less chance of actually reaching the ball when it builds up a bit of speed - or increase it to make the game a bit harder to play.
In more complicated games, it's simply more of the same. You need to add routines to check absolutely everything each time the player or any enemy moves...
How far away is each enemy?
Which is closest and can he see me (line of sight)?
What objects are blocking his view of me?
What does he do if he sees me?
Which objects in a character's path do you have to go around rather than climb over (pathfinding)?
The list is endless and each involves a different set of programming skills - often quite complex.
Try checking out the stickies at the top of the board and Google the terms 'AI tutorial' and 'pathfinding tutorial' to start with.
Good luck!
TDK_Man