Game Development Community

Questions on mouse events

by David Deschenes · in Torque Game Builder · 07/08/2009 (8:42 pm) · 1 replies

I am currently working on a project that involves the need for finding the mouses position on the map on button click, but the only variables i can recieve are vectors. the problem is that i need the X and Y coordinates and im not exactly sure how to extract the numbers from the vector. Any help with this problem would be greatly appreciated.

#1
07/09/2009 (9:51 am)
You can probably do it by just accessing the x and y fields in the vector like this: %worldPosition.x, %worldPosition.y