Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Developing the following camera

Author
Message
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 26th Feb 2003 18:14
I've developed my code a bit further now, modifying Rich's code that he helped me with but now and added a flying ship etc, but when the ship flies upwards the camera doesnt follow it up and it goes out of shot, although it still follows it around, its above the camera so cant be seen. Ive tried putting the +10 bit to the cameras position maybe to try and keep it above the object but it didnt have an effect. Any help please?

Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 26th Feb 2003 18:15
argh sorry messed up the sentence there.. but you get what I mean.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Feb 2003 18:21
You're not changing the "height" value of the "set camera to follow" command which is why it's staying on the ground.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 26th Feb 2003 18:48
Rich Ive added this:

height=object position y(1)

but it still wont go up with the object. What am I doing wrong?
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 26th Feb 2003 22:31
Try positioning the camera at your variable (height) then make it like +20 or something.

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 27th Feb 2003 00:46
The camera doesn't rotate on its x-axis using the set camera to follow command, so you must point the camera at the object. If height is the value above absolute world zero, then what is the point in having the y coordinate? As far as I can tell, the y coordinate does nothing, it's only the height which alters the height of the camera. It may have something to do with the smoothing or collision though, I don't know. I'd have thought a more logical set up would be for the camera to follow the height of the 'y coordinate', and try and be a height of 'height' (if you get what I mean) above the coordinate point.

Once I was but the learner,
now, I am the Master.
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 27th Feb 2003 18:27
SO you recommend putting a point camera into the loop?
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 27th Feb 2003 18:39
Yes.

Once I was but the learner,
now, I am the Master.

Login to post a reply

Server time is: 2024-09-19 23:02:35
Your offset time is: 2024-09-19 23:02:35