camera follow object- !!

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

panton(Posted 2007) [#1]
I have got a model,how can i make that the camera follow it.

please help.


Rob Farley(Posted 2007) [#2]
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.


IPete2(Posted 2007) [#3]
Darktremor,

in the code archives is a function called "Supercam" have a play with that one...lovely stuff.

IPete2.


chwaga(Posted 2007) [#4]
or you could use entityparent...