Hello guys,
I want to create a turn based board game. I want to use a map with grid. Should i use tilemap thing? How can I use it never experienced it. If it doesnt work should i make my grids while drawing a map. Please enlighten me guys.
Develop games in your browser. Powerful, performant & highly capable.
You can use tilemap for background..also check snap to grid.
If you want snap to grid un run-time (when dragging buildings) you can use this formula Mouse.X-Mouse.X%32
where 32 is the grid size and can be a variable like in my example. I never did a game like that (tilemap seems to have a bug or something in r178...)
https://dl.dropboxusercontent.com/u/139926126/Forums/scirra/grid_size_32.capx
Cipriux Thank you!! How did you make layout like that ?
BlazerGlazer i think you meant the snap to grid
View > Grid options > Snap to grid
Wisdoms yeaah i meant this thank you.
Anyone know if I have to do anything to apply changes to the grid size?
Trying to make it 16x16 and only the width will change when I make the changes in the View toolbar. I can still work with a 16x32 grid but it's annoying!
Try changing the Variable "gridSize" to the size of your sprite that you want to grid, and play with the set position gridsize/2
AwesEmz I notice the same thing , But I'm using the input from customized access bar and I have no problem with the grid. (Actually..after setting X and Y grid click to X again to make the change active). This is my configuration: (I also have search bar for fast search)