8 Directional Mouse Follow By: kremling
Actually 6 Directional because the left and right function does not work for some strange reason. :/

But all this example does is makes the sprite look towards the mouse depending on the mouses location.
Target Applications: GM6 GM7

Update History
No History
 
[O] Created: Oct 18 2009, 11:58 PM
[O] Updated: Never
[O] File Size: 16.97 KB
[O] Views: 4550
[O] Downloads: 1119
[O] Favorites: 0
View / Download

Comments
No Icon
TheGreenGuy
May 19 2010, 2:41 AM
Pretty useful, and made with something I wouldn't have thought of, because I'd rather use what's below.

Wouldn't point_direction(x,y,mouse_x,mouse_y) be better to figure the direction in degrees of the object to the mouse? This would make the sprite's facing direction more appropriate with the distance from the object to the cursor, as well.

Or is that not in Game Maker 6?
 
User Icon
kremling
Jul 7 2010, 2:03 PM
Yes that function is in Game Maker 6, I totally wasn't thinking about that at the time. Thanks bro. : )
 
Pages: (1) 1 | Last Unread