is there a place where i can find a good tutorial to create a mini map or even a grid map to make my character walking through it ?
thanks for your help,
hrm... I once (several years ago on a computer that got fried by a lightning strike (no backup :( )) integrated a PHP site into a MUD.. it wasn't anywhere NEAR completion and only had a skeleton system up (hence why I didn't back it up), but I did have a minimap going. it was an smaug mud, and therefore based on vnums, making it easy enough to set up the map.. basically it set up a 7x7 square of squares (a table). the center square was the room your character was in. if there was an exit east the room to the right was added, etc, following exits until it left that 7x7 square then going back to the most recent room with an unexplored exit, and so on. it took a little while to parse but every room that existed in that 7x7 had a thick black border and any area where there wasnt a room had a light grey dashed border. if there was an exit "up" there was a blue "u" in the square and if there was an exit down there was a blue "d" in the square. I wanted to set it up so that if there was another player currently in that room (set something up with php sockets and the mud server to work together) then the background of the square would be green... however I did set it up so on mouseover you could see what monsters respawned in that room...
this is somewhat irrelevant, but I believe it is the type of system your wanting to integrate into your game, yes? how does your game work? I'm guessing you have an X and Y value in your charactor data, and a database containing room descriptions, exits, and x\y values (something like how a MUD works) or file names x-y.php dynamically created where you can create rooms easilly?
elaborate on how location data and areas are set up in your game and I may be able to help you.
This post has been edited by Rechocto: 22 January 2009 - 02:19 AM