Advertisement

Keep track of Arrray position

Started by April 17, 2001 11:51 AM
0 comments, last by Buddi112 23 years, 9 months ago
I''m creating a simple map editor and I have run into a little problem, how do I keep track of my current array position. I use a mouse for selecting different tiles of the map, but I can''t figure out how to convert them to an array position? Any inisght would be appreciated.
Try implementing "current tile focus" variables that represent the tile in the center of the screen that the camera is focussed on. When you move around, the center tile changes, so tiles ''scroll'' around the camera center-point. Only draw tiles that are inside your map boundaries [0,0 : m,n].



MatrixCubed
http://MatrixCubed.org






This topic is closed to new replies.

Advertisement