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.

OK now i did exactly as you said, and even though i dont wreally understand what values a CameraPick carries... It does work now !!!

What a relief! Now i can finally move on and make blood, ammo-control, AI and such.

Thank you very very much!

I have a plan for the AI and i want to know what you think about it:

For Zombie.Zombies = Each Zombies

If EntityInView(Zombie\Ent,Camera) Then

Zombie\DestinationX# = EntityX(Player)
Zombie\DestinationY# = EntityY(Player)
Zombie\DestinationZ# = EntityZ(Player)
Zombie\MovingTimer# = MilliSecs()

If MilliSecs() < ((Zombie\MovingTimer# + 1200.0) - (10 * Degree)) Then
Zombie\X# = Zombie\X# - (Zombie\DestinationX# - (Zombie\X# - 2.0))
Zombie\Y# = Zombie\Y# - (Zombie\DestinationY# - (Zombie\Y# - 2.0))
Zombie\Z# = Zombie\Z# - (Zombie\DestinationZ# - (Zombie\Z# - 2.0))
EndIf

Text Zombie\X#,Zombie\Y#,Zombie\Z#,Zombie\ID;<<-This is for me to know that the zombie is in view...

EndIf

PositionEntity Zombie\Ent,Zombie\X#,Zombie\Y#,Zombie\Z#
AnimateZombie("Walk",Zombie\ID);<<-This is a function i made...

Next

I will sit down now all day to fix it.
Allthough the Trees i use for zombie-substitutes may not be able to move around realisticly =)