Jump to content


JunkGame

Member Since 22 Feb 2009
Offline Last Active Feb 28 2009 03:39 PM

Topics I've Started

[solved By Senakujin/raganark]object/mouse Problem

27 February 2009 - 03:58 PM

Okay, Im decent with GML and stuff but for some reason I can't remember how to do this,I am trying to make my object be exactly where the mouse is, and move as  i move my mouse. I have tried setting the x and y like this.

ob_ship.x = mouse.x
ob_ship.y = mouse.y
or
ob_ship.x = cursor.x
ob_ship.y = cursor.y

and I get:
Error in code at line 1:
   ob_ship.x = mouse.x

at position 13: Unknown variable mouse

or

Error in code at line 1:
   ob_ship.x = cursor.x

at position 13: Unknown variable cursor

Please help me with this  ^_^ im out of ideas.