Game Development Community

Attach a character to the mouse

by Martin Banks · in Torque 3D Professional · 02/24/2010 (12:29 pm) · 2 replies

I want to attach a character, or any object to the mouse, so that when I move the mouse, the object moves in 2 dimensions along with the mouse.

Is there anyway to achieve this effect?

Thanks in advance.

#1
02/26/2010 (9:23 am)
Sounds like you need setMoveDestination for the player.
#2
02/26/2010 (10:32 am)
http://docs.torquepowered.com/torque-3d/official/index.html?content/documentation/Introduction/Introduction.html

See "Scripting:RTS Prototype".