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.

I have solved it now, at least a littlebit. Actually i solved it before youre answer by looking at a example that came with Blitz3D. But what youre saying is offcourse correct and programming an AI is hard. In the school for gamedevelopment wich i am applying for after the armie theres a speciall class just for AI-programming.

I think i'm gonna solve it in a easy way...
My zombies will roam around as they wish and only strike at me when "EntityDistance(Zombie\Ent,Player) < 50" or something. It's easy for me since i have zombies and not soldiers to fight (zombies are a bit dumb, so i heard) =)

Anyway this is my solution now:

For Zombie.Zombies = Each Zombies
If EntityDistance(Zombie\Ent,Player)>2
If (MilliSecs() > (Zombie\MovingTimer# + (12.0 - (10 * Degree)))) Then
PointEntity Zombie\Ent,Player
AnimateZombie("Walk",Zombie\Ent);<< My own function for animations
MoveEntity Zombie\Ent,0,0,0.01 Zombie\MovingTimer# = MilliSecs()
EndIf
EndIf
Next

;<< Degree is "Easy = 1, Medium = 5, Hard = 10" >>;

i will look closer into the EntityVisible command cause my zombies can now see me werever i go... I understand what has to be done i'm just notr sure how to do it...

Once again Thank you for youre help, youre very kind!