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 / help make camera

Author
Message
apophis
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 24th Apr 2004 04:06
I am using DBPro with the NGCollision .dll. I want camera collision so in order to do that I used the following code to make a camera:

make camera maincamera
maincamera = 2
set current camera maincamera
CollisionTypePro(maincamera,TYPE_CAMERA)

The last line lets the collision .dll know what it is looking for "maincamera" and what type of collision it should be set to. I need the name for the camera to have a unique name to use for the collision .dll. However when I run in debug mode the debugger says "can not use camera 0 at line 59" which is the line that says
"make camera maincamera"
Even though maincamera = 2 it is talking about camera 0. What does this mean and why is it happening?

-Apophis
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 25th Apr 2004 16:04
I think u need to put maincamera = 2 before you make the camera

I should have changed my signature when asked

Login to post a reply

Server time is: 2024-11-26 14:37:02
Your offset time is: 2024-11-26 14:37:02