The Daily Click ::. Forums ::. Klik Coding Help ::. mouse position
 

Post Reply  Post Oekaki 
 

Posted By Message

SirSmokeAlot



Registered
  16/01/2009
Points
  1
16th January, 2009 at 18:11:34 -

How can i set the mouse X and Y coordinates to X and Y coordinated of active object, in my frame?
I tried using the mouse object, but it only sets according to acctuall X and Y-screen coordinates, it cant trac k object inside my frame.
Any suggestions? Is it possible?

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
17th January, 2009 at 01:30:53 -

You can use the mouse object but also add in the coordinates of the left and top edges of your window using the Window Control object and the Mouse object together:

Always set Actual Mouse X to WinXPos( "Window Control" )+X( "Active" )
Always set Actual Mouse Y to WinYPos( "Window Control" )+Y( "Active" )

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click