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.

DarkBASIC Discussion / Flat 3d object?

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 9th Mar 2005 23:38
HOw would I make a flat 3d object in DBC? Could some one make a little program in DBC that allows you to move around the object with the mouse? I would really like to see this done. THanks to anyone who would do thia!!



P.s. Code to tell me how to do this is also appreciated!

___________________________________________________________
Visit my temp Page for video games!
http://www.freewebs.com/goodboys_dog
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 10th Mar 2005 00:01 Edited at: 10th Mar 2005 00:03
To Make a 3d plain:


This will make a 3d plain and allow you to view it with the mouse:


Hope that helps, let me know if you have any questions .

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 10th Mar 2005 08:38 Edited at: 10th Mar 2005 08:48
Thanks, I think I have understand it.

What does this do though?


------------------------
Visit my temp Page for video games!
http://www.freewebs.com/goodboys_dog My Goodboys Dog Website I have game reviews, and a chat applet!!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 10th Mar 2005 09:26 Edited at: 10th Mar 2005 09:28
The "MouseClick()" command returns a integer value based on the current mouse key being pressed.

It's like this:

No Key = 0
Left Mouse Key = 1
Right Mouse Key = 2
Both Mouse Keys = 3

So this:

Means if you press the left mouse key the camera will move foward by 2 units.

This:

Means if you press the right mouse key the camera will move backward by 2 units.

Its that simple, let me know if you have any questions .

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 12th Mar 2005 07:57
OKay! Gotchya. I get it. Thanks!

------------------------
Visit my temp Page for video games!
http://www.freewebs.com/goodboys_dog My Goodboys Dog Website I have game reviews, and a chat applet!!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 12th Mar 2005 10:38
No problem .

Login to post a reply

Server time is: 2025-05-23 21:29:04
Your offset time is: 2025-05-23 21:29:04