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 with camera control please

Author
Message
Wreckka
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location: My grandmothers basement.
Posted: 30th Aug 2009 00:07
My controls give me an error that says "Function call 'wrapvalue' expects parameters in brackets at line 49". I understand what it is telling me, but I can't seem to find a solution. Here's my code-

I have no idea what I'm going wrong, so I'd appreciate all the help I can get.

Making my way through life one line of code at a time...
Wreckka
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location: My grandmothers basement.
Posted: 30th Aug 2009 07:08
Well, I didn't technically get any help, but I do want to honestly thank the community for not helping. I figured it out for myself, and must say it feels much better than someone just telling me what to do. Problem solved

Making my way through life one line of code at a time...
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Aug 2009 07:13 Edited at: 30th Aug 2009 07:16
and line 50 is gonna give you the same error.

you're comparing camera angle x() to values 40, 180, 280, which you do correctly in the first 1/2 of each if statement, but not the 2nd.

here are the 2 comparisons on line 49:
wrapvalue(camera angle x(0))>40
wrapvalue(camera angle x(0))180

and, line 50:
wrapvalue(camera angle x(0))>180
wrapvalue(camera angle x(0))280

i'll leave you to find what's missing in the 2nd comparison of each line


Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Aug 2009 07:24
ack, looks like i was a little slow; you snuck in a 2nd post while i was responding. ah well


Wreckka
15
Years of Service
User Offline
Joined: 31st Jul 2009
Location: My grandmothers basement.
Posted: 30th Aug 2009 23:41
Thanks anyways

Making my way through life one line of code at a time...

Login to post a reply

Server time is: 2024-09-28 10:25:41
Your offset time is: 2024-09-28 10:25:41