Game Development Community

Mouse interaction

by D. Vidas · in Torque Game Engine · 08/03/2009 (11:15 pm) · 1 replies

Hey everybody,

I apologize if this has been referenced elsewhere in the Forums, but I haven't found anything concrete yet. I was wondering how I could implement Mouse interaction in my game. I would like to be able to click on the various AI players I have in the game, left click selects and highlights, right click interacts (shoots, talks, that sort of thing.)

I know this is a very common method of interacting in many 3d RPGs (like WoW for example) and I was hoping to figure it out for a game I'm helping to create right now.

Thanks in advance!
Dylan

About the author

Recent Threads


#1
08/04/2009 (7:01 am)
Do a search on "click n pick" or "object selection" and you'll be pointed to at least two resources for implementing this. Also, you can look in the World Editor and try to figure out how it was done there (I implemented the object selection resource). Both resources will open left and right click functionality which you can do with as you please. Hope that helps.