Keep track of Arrray position
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
![](http://24.114.12.207/paleribbon.jpg)
MatrixCubed
http://MatrixCubed.org
![](http://24.114.12.207/paleribbon.jpg)
[ Odyssey Project ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement