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.

It's not really too hard to have a map and run around on it. You should start by just moving the camera around on the map first. Basically:

1. create a camera
2. load the map
3. position the camera
4. set up collisions. Give the map and the camera "EntityTypes"
5. set up a while/wend loop, so that pressing the key escapes. eg...

While Not KeyHit(1)

   MoveEntity camera,0,-1,0
   Flip
   UpdateWorld
   RenderWorld
Wend


6. Put some movement code in there to move the camera. eg...

If KeyDown(200) then MoveEntity camera,0,0,0.1
If KeyDown(208) then MoveEntity camera,0,0,-0.1
If KeyDown(203) then TurnEntity camera,0,1,0
If KeyDown(205) then TurnEntity camera,0,-1,0


You should be able to move around on the map now :o) If you can get that working, paste your code in here, and we can start to add things to it. Get the basics working first ;)