September 24, 2021, 10:04:14

Author Topic: first person camera  (Read 358 times)

Offline grindalf

  • Full Member
  • ***
  • Posts: 191
first person camera
« on: March 01, 2021, 19:52:46 »
Ok I've never made a first person game before but started working on a first person dungeon crawler recently(like a crap version of Delver)
But my camera is a bit choppy with the movement.
I am currently using
Code: [Select]
Turnentity campiv,0,-mousexspeed(),0
Turnentity camera,mouseyspeed(),0,0

I have tried so many different variations but the movement is still choppy and not smooth

I'm sure other people have solved this problem before or have a good idea what I'm doing wrong

EDIT: I fixed it by using the camera turning code in the samples folder(Hi-Toro-Death Island)
But I still don't understand why it was choppy(so if somebody could explain it might help me solve other issues in future)

« Last Edit: March 01, 2021, 22:06:21 by grindalf »

Offline peteswansen

  • Jr. Member
  • **
  • Posts: 68
Re: first person camera
« Reply #1 on: March 02, 2021, 19:45:42 »
I'm playing around with that in one of my fp programs...perhaps try reducing mouse x&y speed to 1/10th   (  .1 ) or some other decimal..

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal