Can someone help me with example or explanation of how the EasyGrid works.
Printable View
Can someone help me with example or explanation of how the EasyGrid works.
It seems Easy grid doesn't have help files. I don't really know how to help you with this. Easy grid is nothing visual, it just helps you with actions such as putting an object into a cell or converting X and Y positions to a cell.
If you double-click on the Easy grid object you can define your playfield (size of a cell, number of cells...). Then you can use Easy grid in your game.
For example, if you want an object to follow the mouse, from cell to cell use an event like :
-Always : Set Object's X position To SnapX("Easy Grid", Xmouse)
Set Object's Y position to SnapY("Easy Grid", Ymouse)
It's just an example you could do anything related to cells and positions with this extension. Maybe it would be easier to help you if you asked for what you want to do.
Hope this helps
Thanks for your reply Corentin. For an example of what I want, lets say your in Photoshop and you set up a grid using the Blue Guides that consist of 10 columns X 10 rows and these cells are 50 pixels square. If you move a square to another cell it snaps to the guides. I have a puzzle which is somewhat the same, half of the tiles are already placed on the board in their correct location but has been rotated. The rest of the tiles are located off to the side. The player left clicks on a tile and moves it to the board. Once placed and released by the mouse, I want the tile to snap to the cell, then the tile can be right clicked and rotated to the correct orientation. If the tile does not snap to a cell, it will just be free floating on the screen. I hope this explains what I want. I'm not sure if EasyGrid or MMF2 can do this. Any help would be great.