I’m creating a pseudo-tile-based system for a project I’m working on, in the sense that from a programming perspective the project is tile-based, but the end-user won’t be able to tell, because the visuals will be pre-drawn without tiles. Anyway, this means in the code I have a matrix representing the map (the usual [[0,0,0,0],[0,0,0,0],[0,1,0,0],[1,1,1,1]] type deal) and a given constant size for tiles (say 32x32), and then I have a symbol graphically representing the map that’s - for the example I just gave - 128x128 pixels in size.
The actual map, however, is actually much bigger. 36x27 tile maps. Anyway, I'm running into some issues centering the map around a certain point. For example, say I want to start the program out with the tile located at (10, 12) in the center of the movie. I initially tried things like "map._x = map._width/2 - 32 + centerx; map._y = map._width/2 - 32 + centery;" and similar formulae, but none of them appeared to work properly... how would I go about getting this to work?
Thanks, in advance.