Game Development Community

Mouse event of t2dobjectctrl

by Playware · in Torque Game Builder · 02/25/2007 (10:11 pm) · 1 replies

Hi, does the t2dObjectCtrl support mouse over events? if no, then is there any way to show animation on a guicontrol when the mouse is over it??

any advice is appreciated, thanks and regards

#1
02/26/2007 (9:03 pm)
Please see TDN's guiT2DObjectCtrl documentation.

You should be able to set the scene object of the control to a t2dAnimatedSprite and start the animation via the onMouseEnter() callback. Then stop the animation via the onMouseLeave() callback.