x


Before updating to Windows 10 you may need to return your Pro license. More information here

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, 2010 at 02:40 AM

avatar image

anon
44 17 14 17

(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, 2010 at 05:18 AM

avatar image

Ashkan_gc
10.5k 78 127 171

(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, 2010 at 04:40 AM

avatar image

Maltus
318 33 31 37

(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

By RSS:

Answers

Answers and Comments

Topics:

x2877

asked: May 05, 2010 at 02:40 AM

Seen: 2543 times

Last Updated: May 05, 2010 at 02:40 AM