RC2: setMousePosition does not work
by J. Alan Atherton · in Torque Game Builder · 06/09/2006 (8:18 am) · 6 replies
The sceneWindow2D method setMousePosition does not work correctly. The problem is outlined in this thread:
www.garagegames.com/mg/forums/result.thread.php?qt=37738
Here is a discussion of a related problem for TGE:
www.garagegames.com/mg/forums/result.thread.php?qt=19875
In the above thread there are fixes for Windows, Linux, and Mac.
Any game that wants to use the mouse, but does not want their controlled object to be rigidly connected to the cursor (think a shooter where the spaceship has mass and momentum) will either need to use this method or bind the mouse (which also seems to be broken).
www.garagegames.com/mg/forums/result.thread.php?qt=37738
Here is a discussion of a related problem for TGE:
www.garagegames.com/mg/forums/result.thread.php?qt=19875
In the above thread there are fixes for Windows, Linux, and Mac.
Any game that wants to use the mouse, but does not want their controlled object to be rigidly connected to the cursor (think a shooter where the spaceship has mass and momentum) will either need to use this method or bind the mouse (which also seems to be broken).
#2
06/12/2006 (12:08 am)
This has been fixed - thanks for the report. Looking forward to the article. :)
#3
06/12/2006 (6:56 am)
Excellent!
#4
Here on TDN
I haven't figured out how to link it in to the tutorials page... anytime I try to edit the tutorials page it just comes up blank. Has it been reverted to employee-only edits on the hub pages?
06/15/2006 (9:01 am)
Ok, as promised, the tutorial is up.Here on TDN
I haven't figured out how to link it in to the tutorials page... anytime I try to edit the tutorials page it just comes up blank. Has it been reverted to employee-only edits on the hub pages?
#5
Don't worry though, I think that throws everyone off the first time they try to update the links. :)
06/15/2006 (11:18 am)
I added a link to the page for you. Everyone can edit the hub pages, but it is done by editing the template. So when you see that blank edit page, towards the bottom there is a list of templates used. The template name is called TGBScriptingGeneral.Don't worry though, I think that throws everyone off the first time they try to update the links. :)
#6
06/15/2006 (11:21 am)
Ah, thanks for the info. And for linking the page in.
Torque Owner J. Alan Atherton
Think of it as a small bounty, where if you guys do the code, I'll pay you back with a little doco. It's not much, I know, but I'm offering it anyway.