Need help with FPS

Blitz3D Forums/Blitz3D Programming/Need help with FPS

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Probably I'd rather PointEntity the enemy to the camera or player, then MoveEntity the enemy towards him. BTW EntityInView does only check if the player is behind the camera or in front of the camera, but it will ignore Walls etc as far as I remember. I'd rather use EntityVisible, and you need to make the target pickable, as well as the walls between the both. Don't use it too much, it can slow things down. EG when the enemy is way out of place, you don't need to check it at all (use EntityDistance).

But then there is still a problem with Pathfinding, unless you want the enemies to act silly. Pathfinding is a heavy chapter and personally I reduced the entire AI to simple waypoints. These are tracks the enemies may walk on, no matter what they do. So they ain't got free movement, but have to use "legal ways". it is then a further job to make them use the best ways to achieve their goal, but probably it's already pretty AI-ish if they try to shoot you from their Current position, or, by random decision, keep on running and continue firing from an other point on their waypoint track(s).

There have been several approaches to automaticly calculate legal ways and best paths from any point in a level to any other point, but sometimes this is pretty slow, ram-costy and complicated. Currently I use a waypoint recorder tool that is simply recording the way that I am walking in the level, then assigns it to an enemy in the game.