Forum Posts Following Followers
1077 7 8

AI in game III

The problem next was the fact that the bullets didnt appear on screen, and i knew that the ai was actually shooting since it was using my ammo count. So it came to the fact that it was some graphical and pointer error that was taking its toll on the system.

This is now complete what wat the problem is now is the fact that everty time the AI fires a bullet not only does this deduct the score but also blows itself up due to the bullet that it just fired... DUMB THING i know...

However the solution what im currently thinking about is the creation of a new bullet class called AlienBullet, that then changes the AI and player collision detection system so that the Alien is destroyed by a bullet which is fired by player and the player is destoryed by an AlienBullet which is fired by the AI.

However it appears that the AI seems to fire a normal bullet and not an AlienBullet althogh it is explicily stated...