Skip to main content
GameDev.net gamedev.net
🔒 Locked

Starting at specific tile

Started by Taco2003 Apr 28, 2004 at 6:34 PM 1 replies 800+ views
Original Post
Taco2003
Taco2003
Ok I have my map [256][256], it draw fines and everything like that. My problem is that I want the map view to start at the bottom left of the map, instead of the top left. eg, 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0X00000000000000 0000000000000000 X = tile with my start here flag selected. Would I just search for this tile and then set my camera x & y values to display that section of the map.
SantaClaws
SantaClaws
Yes, that''s what you would do. Or, you could just allow the map file to specify the starting camera X,Y itself, instead of storing it in a tile.
Archi
Archi
Center camera on the tile or center the map to camera?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.