Username
Password
Are you new? Sign up now
I’ve forgotten
Home
:.
Downloads
:.
Articles
:.
Projects
:.
Reviews
:.
Forums
:.
Arcade
:.
Klikcast
:.
GOTW
The Daily Click
::.
Forums
::.
Klik Coding Help
::.
Snapping to mouse while snapping to a grid in TGF
Post Reply
Post Oekaki
Posted By
Message
KevinHaag
Registered
28/01/2005
Points
266
12th February, 2006 at 03:06:57 -
How can i make it so an object will always be following the mouse, while also snapping to a grid.
Remember! I have The games factory!
thanks
http://www.kevinhaag.ca
Reno
Registered
11/01/2005
Points
906
12th February, 2006 at 03:14:58 -
This is an easy thing to do! Just:
Always: set Xpos to Xmouse / 32 * 16
set Ypos to Xmouse / 32 * 16
Or something like that. I have not needed to do this for a long time so I do not quite remember.
Reborn Again
KevinHaag
Registered
28/01/2005
Points
266
12th February, 2006 at 03:38:24 -
is the number you multiply it by the grid size
http://www.kevinhaag.ca
Post Reply
1
All
Advertisement
Worth A Click