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 / Darkbasic Lite camera question:

Author
Message
Trashcanham
21
Years of Service
User Offline
Joined: 17th May 2003
Location: United States
Posted: 17th May 2003 19:53 Edited at: 18th May 2003 00:08
I am new at this
With Darkbasic Lite, is there a code to move the camera up +10

I tried something like this:
If inkey$()="o" Then position camera=camera position y()+10

I knew that its wrong but how could I make it right?

--Thanks--

D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 17th May 2003 21:09
Try this.

if inkey$()="o" then position camera camera position y()+10

God is real, unless declared integer.
Trashcanham
21
Years of Service
User Offline
Joined: 17th May 2003
Location: United States
Posted: 17th May 2003 23:34
it didn't work
it says:
Parameter Mismatch. position camera expects real,real,real at line 39

Danmatsuma
21
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 17th May 2003 23:59
That's because you need to feed it x, y, and z coordinates
try:



ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Trashcanham
21
Years of Service
User Offline
Joined: 17th May 2003
Location: United States
Posted: 17th May 2003 23:59
I figured it out!!!!!
if inkey$()="o" Then position camera camera position x(),camera position y()+10,camera position z()

Thanks again

Trashcanham
21
Years of Service
User Offline
Joined: 17th May 2003
Location: United States
Posted: 18th May 2003 00:08 Edited at: 18th May 2003 00:09
Then there's more than one way...

So you can make codes just by putting something like:

haha=xrotate camera -50 (or something like that)

So wherever you insert haha it would xrotate the camera -50?

or are cx#,cy#, and cz# codes?

Login to post a reply

Server time is: 2024-11-24 14:50:26
Your offset time is: 2024-11-24 14:50:26