dividing terrain into grid cells

I want to make a city builder so I want to permanently divide my terrain with a grid, in which each cell has a unique x,y coordinate.how can I do this?

Also I would like each cell to have different properties like different kinds of zones, commercial residential etc. so to apply these I guess I ll also have to treat each cell of the terrain like a different object with different properties. I have no idea how to do this either anything to get me started?

more ▼

asked May 05 '10 at 02:40 AM

anon gravatar image

44 7 7 10

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

terrains are grid based in their nature but if you want to have special properties for each gread maybe you should place a special GameObject on top of each cell. descripbe your problem more specific to get better answers.

more ▼

answered May 05 '10 at 05:18 AM

Ashkan_gc gravatar image

9.9k 36 59 123

(comments are locked)
10|3000 characters needed characters left

The scope of your question is large,and such you should begin by really planning out what you want. It's a good idea at that stage to get paper and pencil out and really start outlining the assets you will need. I imagine you will need scripts for the city objects you build plus you need graphic assets to represent the various objects.

more ▼

answered May 05 '10 at 04:40 AM

Maltus gravatar image

298 10 15 22

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: May 05 '10 at 02:40 AM

Seen: 2200 times

Last Updated: May 05 '10 at 02:40 AM