move object to where mouse is clicked -
01-19-2012, 01:26 PM
ok here is my world, if you go to (world level) method called "portalFire", i want it to move an object (redPortal) to where the mouse is clicked. It could be the entire object under mouse, I'm fine with that. like the center of it. but if i have a big object, if it could move the object "redPortal" to the exact spot clicked on the object. that is what i really want. I'm trying to avoid creating a million objects, so it moves the "redPortal" to that object...
all in all, i want "redPortal" to move to the location of where user clicks an object.
|