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 / 3d object move

Author
Message
redalert1
16
Years of Service
User Offline
Joined: 27th Dec 2008
Location:
Posted: 28th Dec 2008 05:06
Im completely new to DB. Im trying to get started in 3d, prob is I want to create a sphere and control motion back,forth,side with arrow keys. well ive got the sphere but cant move it.. can someone help:::
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Dec 2008 18:00
Try looking at upkey() downkey() leftkey() rightkey()

Then look at move object.

Here is an example:



TheComet

Peachy, and the Chaos of the Gems

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 29th Dec 2008 03:51
Comet:

How would Dec X#,2 move his object left? wait ya it would but only if he isn't going to rotate the object. if he does then he is going to need something like



or make the plus 90 to a -90 to turn left. wouldn't that be a bettter way weather he's is rotating it or not?

P.S. I love your Subroutines marker i think i'm gunna copy that with your permission haha
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Dec 2008 11:13
Quote: "P.S. I love your Subroutines marker i think i'm gunna copy that with your permission haha "


Sure, go ahead!

I updated my example using your tip:



Use left and right arrow keys to rotate, use a,d,s,w to move sideways, forwards or backwards.

TheComet

Peachy, and the Chaos of the Gems

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 29th Dec 2008 19:18
haha thanks i wanted to do something like that but was to lazy lol


nice example. that should help him
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 22nd Jan 2009 22:56 Edited at: 22nd Jan 2009 22:56
oh ya I like that too, its awsome comet !



here is one for functions

bluestar4~
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 23rd Jan 2009 08:24
Thanks!

I wrote a program that would generate that just by entering the text you want. Should I post it?

Peachy, and the Chaos of the Gems

Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 24th Jan 2009 00:17
ya. on a side note, I forgot to remove the "E" so my version of functions looks french lol

bluestar4~
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 6th Feb 2009 00:21 Edited at: 20th Feb 2009 01:25
Here is a code snippet
it is 3rd person and moves a cube around

arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 10th Feb 2009 03:32 Edited at: 11th Feb 2009 01:50
How do you create code snippet links?


Edit

Like this
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Feb 2009 18:37 Edited at: 10th Feb 2009 18:53
1. put code in
2. Highlight
3. press code button


lol i didn't know for like 3 weeks when i firrst got on here lol

oh and comet yess i would love that program

Login to post a reply

Server time is: 2025-05-18 03:08:44
Your offset time is: 2025-05-18 03:08:44