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 / Huge Camera Problem

Author
Message
Zizzy
16
Years of Service
User Offline
Joined: 16th Apr 2008
Location:
Posted: 18th Apr 2008 22:55
I cannot seem to get the camera to move images or sprites, i can only move the image or sprite, im trying to center my character in the screen and have the camera work around him, even tried dbSetCameraToImage(); but when i do that, the image becomes green and i still cant control it....is there an example for this?
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 19th Apr 2008 04:56
set camera to image is not for that purpose, its for making an image from the camera's view. (Like taking a picture, with the image being analogous to the film.)

Here are two functions in DBPro for a simple 1st person and 3rd person camera. The target variable is a DBPro object in both functions.



You can make a cube, for example, and hide it. Then, you use the method that code does to control the camera.

I'm not sure at all how to do that with an image, or sprite, however. Sorry.

Login to post a reply

Server time is: 2024-09-29 17:19:20
Your offset time is: 2024-09-29 17:19:20