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 / camera with animation help

Author
Message
super_tornado_2
21
Years of Service
User Offline
Joined: 29th Jul 2003
Location:
Posted: 30th Jul 2003 19:08 Edited at: 30th Jul 2003 19:09
i have a walking man in my game, animated and fully textured but i just cant seem to set the camera up, can some one please tell me how!!!
i would like the camera to be behind the man and pointing directly at it.
at the moment the camera is either behind the man OR pointing towards him, i can never make it do both.
thanks
super_tornado_
p.s. i have dark basic classic not pro

MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 1st Aug 2003 20:29
It shouldn´t be too hard to do it. All you need to do is make sure you know where you man is.
This is what I used for my game:
First posittion the man:
position object 1,x#,y#,z#
And then position the camera:
set camera to follow x#,y#,z#,a#,200,y#+80,3.5,1
the x# is the man´s x position. This is the same for y# and z#
a# is the angle. I´ve got it at 180 to set the camera behind the man
200 is the distance between the camera and the man
y#+80 is the height of the camera
3.5 is speed the camera updates. This makes the camera move from one position to another instead of jumping instantly from one place to another(I think)
the 1 means that collision with static object boxes is set on.

[href]www.iespana.es/totalpropertyservices/dbzvideo.gif

Login to post a reply

Server time is: 2024-09-20 17:33:59
Your offset time is: 2024-09-20 17:33:59