# How Would This Work (Tile System)

**URL:** <https://forum.kirupa.com/t/how-would-this-work-tile-system/231224>\
**Category:** programming\
**Created:** [July 3, 2007, 2:21am UTC](https://forum.kirupa.com/t/how-would-this-work-tile-system/231224 "2007-07-03T02:21:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattd8752](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mattd8752](https://forum.kirupa.com/u/mattd8752)\
**Post date:** [July 3, 2007, 2:21am UTC](https://forum.kirupa.com/t/how-would-this-work-tile-system/231224/1 "2007-07-03T02:21:27Z")

</div>

I want to do an RPG game.  
Here is my plan:

[LIST]  
[_]A map can be any size.  
[_]A user can step only step in the middle of tiles.  
[_]Tiles would all be 90x90.  
[_]The user is always in the center of the screen.  
[_]The tiles are loaded from an XML file.  
[_]Each tile is a bitmap image.  
[\*]The XML also stores weather the item is “walkable” (weather a user can walk on it or not).[/LIST]So, what I want to know is, how would I do this.  
First off, how would I make the XML sheet.  
Second, how would I know where the user is, would I make a new coordinates system to put each tile on a coordinate.  
Third, how would I draw the map, what functions would be used? Would I erase everything then redraw, or would I draw everything then move the image?  
Fourth, I am new, what should I keep in mind when designing this.  
Fifth, is there a way to dynamically import bitmaps. (Say I kept a tiles folder on my server, could I import them so they are only loaded as their maps are needed?)

What else should I know, what should I read before I make the map?
