SykoPath
07-19-2009, 06:20 AM
Hi guys i'm new here. I thought I could get some help with something I'm stuck on.
I dont know exactly where to place this so I just put it here.
Well I am trying to create a game. I was hoping to allow users to create and upload their own levels.
Making a level editor in Flash should be no problem. I've created one before. The problem is after that.
Using this I was able to load a level from a server.
http://www.emanueleferonato.com/2007/05/21/how-to-load-levels-in-a-flash-tile-based-game/
Ok. So right now I have a level editor and the ability to load an XML level. What I now need to be able to do is to upload the created levels to the server. I have heard that Flash alone cannot do this. I need to use Flash with PHP.
I am not new to Flash or PHP. But I have never used the two together before and I can't seem to find any thing online.
Can someone please help me figure this out?
Also. How would I get the uploaded files from the server? The tutorial I used to load a level uses a main file that holds the locations of the two level files. But when users upload their own level where would I look for them? Do I have to edit the main XML somehow? Or even better is there a way to get a list of all files from a directory?
I haven't been able to find anything online. I would greatly appreciate any help.
I dont know exactly where to place this so I just put it here.
Well I am trying to create a game. I was hoping to allow users to create and upload their own levels.
Making a level editor in Flash should be no problem. I've created one before. The problem is after that.
Using this I was able to load a level from a server.
http://www.emanueleferonato.com/2007/05/21/how-to-load-levels-in-a-flash-tile-based-game/
Ok. So right now I have a level editor and the ability to load an XML level. What I now need to be able to do is to upload the created levels to the server. I have heard that Flash alone cannot do this. I need to use Flash with PHP.
I am not new to Flash or PHP. But I have never used the two together before and I can't seem to find any thing online.
Can someone please help me figure this out?
Also. How would I get the uploaded files from the server? The tutorial I used to load a level uses a main file that holds the locations of the two level files. But when users upload their own level where would I look for them? Do I have to edit the main XML somehow? Or even better is there a way to get a list of all files from a directory?
I haven't been able to find anything online. I would greatly appreciate any help.