• Advertisement

Archived

This topic is now archived and is closed to further replies.

Map Scrolling..?

This topic is 5680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

  • Advertisement