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 / mouse target?

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Mar 2006 18:23
Is it possible to have an object move to were ever the mouse is at that present time? I tried aomthing that didnt work.


that doesnt work. As soon as you move the mouse, the object disappears.
any one know to do this feat?

dont assume cause ull make an ass out of you and me!
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 19th Mar 2006 19:06
Is this the whole code? If it is, you'll need to do a few things...

1)turn on sync
2)turn autocam off
3)move the camera back (say 0,0,-200, maybe closer)
4)sync at the end of the loop (the syncing is kind of a precaution)

Amiga: INSERT DISK 7
User: "There isn't a disk bloody 7 in the box!"
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 19th Mar 2006 20:24
what does sync even do? Why must a iuse cameras?

dont assume cause ull make an ass out of you and me!
Mr Pointless
20
Years of Service
User Offline
Joined: 17th Oct 2004
Location: Stuck in the UK
Posted: 19th Mar 2006 20:30
The camera is what brings everything it can "see" onto your screen... move that to somewhere where the cube comes into the camera's view.

As for sync, this tells the computer/DB to perform all the commands before it in one go.

Amiga: INSERT DISK 7
User: "There isn't a disk bloody 7 in the box!"
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 19th Mar 2006 23:02 Edited at: 19th Mar 2006 23:08
hmmm. working it out right now

see this:



try hitting the "1" key inside the program. it goes off the screen, very odd. working on it some more

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 20th Mar 2006 00:20
woerd. But how can i make the object follow the mouse?

dont assume cause ull make an ass out of you and me!
driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 20th Mar 2006 01:15 Edited at: 20th Mar 2006 01:18

there ya' go.

[edit] forgot to comment.

I have a lil' white jacket that lets me hug myself forever.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 20th Mar 2006 02:13
I tried that, and it had a ton of bugs. Then it just didnt work thx forthe thought though, thats wut counts...

dont assume cause ull make an ass out of you and me!
driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 20th Mar 2006 02:54
this code works just fine for me

what's it doing when you try to use this method?

I have a lil' white jacket that lets me hug myself forever.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 20th Mar 2006 13:56
If he didnt know what a camera is then it sounds like hes just pasting your code into his program anywhere and assuming it will work.

Torq
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location:
Posted: 21st Mar 2006 04:35
Look up the Pick object command theres an example there that allows you to move 3d objects with the mouse this can be modified to do what you are asking for.

Whats the RED button for ?

http://badtempergames.tripod.com

Login to post a reply

Server time is: 2024-11-27 23:49:53
Your offset time is: 2024-11-27 23:49:53