camera follow object- !!

Blitz3D Forums/Blitz3D Beginners Area/camera follow object- !!

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.

Off the top of my head...
pointentity camera,player
moveentity camera,0,0,entitydistance(camera,player) - distancefromplayer
and if you want to smooth it out
moveentity camera,0,0,(entitydistance(camera,player) - distancefromplayer) / smoothing
smoothing could be about 20 or 30 but this will make the distancefromplayer 20 or 30 times bigger so you'll need to adjust that accordingly.