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.

Dark GDK / Camera following character?

Author
Message
Mister Fuzzy
13
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 8th Jul 2011 00:26
Ok, so I'm using dbSetCameratoFollow(ectect...), and it's working fine. However, I can't seem to figure out how to make the camera rotate with my character...
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 8th Jul 2011 08:06
Here maybe this will help you, I made it a while back, it doesn't use dbSetCameratoFollow() but it works none the less!

http://forum.thegamecreators.com/?m=forum_view&t=151682&b=22
Mister Fuzzy
13
Years of Service
User Offline
Joined: 27th Feb 2011
Location: XNA
Posted: 10th Jul 2011 03:44
Thanks, but I got it working with some kinda quirky code I wro


distance is the distance the camera will be from the specified object,
offset is the angle offset ( rotate an extra N degrees ),
object is the object to follow,
height is the camera's height, and
xoffset moves the camera to the left or right of the object ( positive values go right, negative goes left ).

I hope this mildly messy code helps someone!

Login to post a reply

Server time is: 2024-11-19 09:27:37
Your offset time is: 2024-11-19 09:27:37