VBGamer |
|||||||||||||||||||||||||||
Re: But what if... Philipp (1 reply, 0 views) (2001-Jan-5)
I'd use a third 2D array storing the index of the object which is on a square. When the user clicks somewhere on the screen just read index of the object out of the array. This is a very fast method especially if you`re using many objects but it needs a bit more memory because of the 3rd array.
I think this is much better than cycling through all the objects.
|