Game Development Community

MouseOverCollision

by Chad Kilgore · in Torque Game Builder · 09/29/2007 (9:33 am) · 1 replies

Would it be possible to create a MouseOverCollision behavior? It would similar to the standard MouseOver behavior, but instead of applying only when the mouse hovers over the object's collision. It would look similar to dead-code.org/graphics/web/SceneEdit1.png

This behavior would be used in developing traditional graphic adventure games. Thanks.

#1
09/29/2007 (2:17 pm)
You could use Triggers with your own custom collision poly. Then have a blank t2dSceneObject follow the mouse and have it collide with the Trigger objects. Then you can have an "onEnter" custom function to do whatever you needed.

Hope this gives you a bit of an idea.