array maps

Blitz3D Forums/Blitz3D Beginners Area/array maps

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok, so. Your moving players and CPU players. You store there location in a 2D grid. I assume you do this, so two players don't occupy the same grid square?

If so, then, each time a player goes to a new grid square, mark the old grid square unoccupied from the moment the player leaves, and at the same time, mark the new grid square occupied. Can't you do this from when you check each type object?