Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#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