How do I grid map

Get help using Construct 2

Post » Wed Sep 03, 2014 2:52 pm

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.
B
4
S
1
Posts: 46
Reputation: 519

Post » Wed Sep 03, 2014 5:17 pm

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
B
81
S
21
G
23
Posts: 515
Reputation: 18,702

Post » Wed Sep 03, 2014 5:54 pm

@Cipriux Thank you!! How did you make layout like that ?
B
4
S
1
Posts: 46
Reputation: 519

Post » Wed Sep 03, 2014 10:17 pm

@BlazerGlazer i think you meant the snap to grid

View > Grid options > Snap to grid
B
22
S
6
Posts: 244
Reputation: 2,690

Post » Thu Sep 04, 2014 7:28 am

@Wisdoms yeaah i meant this thank you.
B
4
S
1
Posts: 46
Reputation: 519

Post » Sat Sep 06, 2014 12:44 pm

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!
B
7
S
1
Posts: 6
Reputation: 394

Post » Sat Sep 06, 2014 12:55 pm

Try changing the Variable "gridSize" to the size of your sprite that you want to grid, and play with the set position gridsize/2
B
22
S
6
Posts: 244
Reputation: 2,690

Post » Wed Sep 10, 2014 4:08 pm

@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)
Image
B
81
S
21
G
23
Posts: 515
Reputation: 18,702


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 29 guests