Grid system (Tgf/mmf)
Author: | Nuutti
|
Submitted: | 9th August, 2004
|
Views: | 5052
| Rated: |
|
|
So this is a grid snapping thing for example for a level editor.
Lets make it so that the snapping object moveable by mouse, but snaps to the grid.
Here's first event:
-Reapeat while left mouse-key is pressed
-Mouse pointer is over 'MoveableObject'
:Set X position of the object to xmouse/32*32
:Set Y position of the object to ymouse/32*32
thats it the number, 32, can be anything else, depending on the size of the grid.
|
|
Nuutti
Registered 26/10/2003
Points 1364
|