Archived

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

minderaser

tiles in wrong place

Recommended Posts

minderaser    122
i made a map but i have a problem where my bottom tiles are at top instead of on bottom i intialized in something like this map sizeX = 10; map sizeY = 20; i have them located in the proper place in... map[10][20] { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,}...... ................................................ } tile 1 actually shows up on bottom instead of on top; i call it later on when i draw... draw { ...code to tile map map[y][x]; ...code that draw map } i''m wondering if i switch the y and x will it work?

Share this post


Link to post
Share on other sites
JNewt    122
Switching X and Y won''t do it. You need to change the way that Y increments (or decrements). Try modifing your drawing loop so that Y decreases from the map height to 0.

Share this post


Link to post
Share on other sites