Map Scrolling..?

Started by
2 comments, last by HPK 21 years, 9 months ago
Sorry if this is a silly question , but this is the first game im writing. Im able to draw a isomtric map , tile by tile in the screen but i would like to know how to make this map to scroll. if there is any tutorial pls tell me
Advertisement
Keep track of two global variable: mapX, mapY. Then whenever you draw a tile use the tile''s coordinates + (mapX, mapY). To scroll, just change mapX and mapY.
Look under articles and resources.

,Jay
Could I recommend CDX and a sub product CDXMappy?

www.sourceforge.net/projects/cdx

Regards

BaelWrath

If it is not nailed down it''s mine,
and if I can prise it loose,
it''s not nailed down!
BaelWrathIf it is not nailed down it's mine and if I can prise it loose,it's not nailed down!

This topic is closed to new replies.

Advertisement