Game Development Community

Interacting with objects using the mouse?

by Chris · in Torque Game Engine · 04/15/2004 (11:50 am) · 4 replies

Hey guys,

Still digging through the massive amount of stuff out there. Next step is to figure out how to have a character "interact" with an object.

Now I saw how to set up "powerup" type stuff in the Codesampler tutorials, but what I'm looking for now is a way for a PC to use his mouse to click on an object and interact with it somehow. Pick up, destroy, toss, etc.

Any links you guys can point me to and get me moving in the right direction?

#1
04/15/2004 (11:59 am)
Hmm. There WAS a tutorial that did exactly what you want as part of the Torque documentation before Josh's facelift. Now I can't seem to find it.

I'll keep looking.
#2
04/15/2004 (12:02 pm)
I stand corrected. This is the tutorial I Was thinking of. IT shows how to "use" an object, but not via mouse click. It uses a keypress.

However you can combine this with the various mouse selection resources.
#3
04/15/2004 (12:07 pm)
Excellent, thanks John!
#4
04/15/2004 (11:27 pm)
Object Selection Tutorial

I've implemented this tutorial for the kind of functionality you are looking for. Works great.