Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualWeNeedFocus

Posted 04 May 2013 - 12:21 PM

So I have two 2D array layers, one of the ground/terrain and another that contains entities/units.

One item can occupy a spot at a time, but since I want some entities to overlap, how can I efficiently do this?

I have already tried doing it with a list, but I don't prefer it since I have to run through the whole list each time I want a specific entity, when in a 2D array I can just do Entities[x,y] and I have the specific entity I want.

No code necessary, just an explanation. Thanks


#1WeNeedFocus

Posted 04 May 2013 - 12:20 PM

So I have two 2D array layers, one of the ground/terrain and another that contains entities/units.

One item can occupy a spot at a time, but since I want some entities to overlap, how can I efficiently do this?

I have already tried doing it with a list, but I don't prefer it since I have to run through the whole list each time I want a specific entity.

 

No code necessary, just an explanation. Thanks


PARTNERS