Game Development Community

New Object Selection resource

by Rubes · in Torque Game Engine · 05/01/2006 (8:28 pm) · 3 replies

Hi folks...

Just wanted to let you know I submitted a new resource which updates Dave Myers's Object Selection resource from a year ago, so you can check it out before it makes the official list. I made some modificatons to that resource, most of which were noted in the discussion that followed, so I thought I would be useful to compile it all into a new resource since there are some significant differences.

This resource starts with a stock installation of TGE 1.4 and starter.fps and will allow you to:

1. "select" objects by pointing at them with the crosshair and clicking the mouse button (left or right), and
2. exempt an already "selected" object from click detection, so you can select an object inside or right next to another object

In addition, for those with TLK, it will also show you how to make "selected" objects appear brighter (essentially self-illuminated) to indicate they are selected.

The code is designed for first-person POV, but it can be adapted (using code from the earlier resource) to make it work for third-person POV as well.

The new resource can be found here:

Updated Object Selection (with TLK bonus)

#1
05/01/2006 (8:35 pm)
Nice! The question about lighting up selected objects has been the topic of more than a few threads. I'm sure a lot of people will find this useful.
#2
05/01/2006 (8:37 pm)
I hope so, although the lighting does not "emit". So it's not really the same as a glow effect, which I know a lot of people (myself included) have been interested in.
#3
05/02/2006 (10:35 am)
Very Nice!