Picking up one item at a time
by Georgina Benedetti · in Torque Game Builder · 01/30/2011 (5:41 pm) · 1 replies
Hi all!
Currently my mouse is picking up more than one item onMouseDown because the objects are overlapping each other. It even picks up other items as it the mouse is dragged over the top of it while holding it down. Is there a way to set it so that the mouse can pick up only one item at a time?
Currently my mouse is picking up more than one item onMouseDown because the objects are overlapping each other. It even picks up other items as it the mouse is dragged over the top of it while holding it down. Is there a way to set it so that the mouse can pick up only one item at a time?
Torque Owner Richard Ranft
Roostertail Games
Can you add a global variable $mouseIsDown that, if true, short-circuits the "pick-up" code? You just set it to true onMouseDown and set it to false onMouseUp.