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 / Trouble with freeCamera()

Author
Message
Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 21st Oct 2006 21:34 Edited at: 21st Oct 2006 21:35
For my camera I'm using the following code:



When I try to compile I get an error on line "set current camera viewCam" telling me that the camera does not exist. I have the same problem with my function freeObject().

http://3dfolio.com
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 21st Oct 2006 21:43
#Constant means the variable "viewCam" was constantly trying to update itself.



Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 21st Oct 2006 22:03
That code is no good. I need this and other variables like it to remain global.

http://3dfolio.com
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Oct 2006 22:09
The keyword global makes them global, not #constant.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd Oct 2006 01:23
All #constant does, is do a global search and replace on source code before passing result to compiler, so it would have passed this code to compiler;



Which is plainly wrong.

Boo!

Login to post a reply

Server time is: 2024-11-27 05:43:32
Your offset time is: 2024-11-27 05:43:32