Game Guides > Game FAQ >  

How can you make a object follow the cursor in Game Maker

How can you make a object follow the cursor in Game Maker
In the step event of the object following the cursor, place the following code: move_towards_point(mouse_x,mouse_y,2); To speed up or slow down how fast the object follows the cursor, change the value of 2!