irken Posted December 14, 2006 Share Posted December 14, 2006 Hi.I'm in the process of creating a small 2D (Refered to as 3D chat by most people). I've done the basic login and create user system, and how each field in the chat is going to be placed (in /chat/frameset.php). Now I'm getting to a place where I can't visualize how I'm supposed to progress. What do I do next? I'm probably way over my head doing this, but I feel that I'm catching on pretty fast considering I've only been programming PHP for a week's time. I just lack structure in my work plan.I've uploaded the "chat" - well, can't call it a chat yet - here: http://www.sendmefile.com/00488663If you have any pointers on how I could progress from here, please let me know :-). Oh and, I don't think it'll run on Firefox. You need PHP5 and MySQL to run it. Table is in /includes/Database.php. Other than that, nothing to it. There is a samle background for how a room is going to be, in /chat/gfx/rooms/bedroom.jpg.[img]http://img313.imageshack.us/img313/8627/bedroomla7.jpg[/img]Thanks for reading.EDIT: A small mistake.. the file in /chat/gfx/mark.gif should be renamed to marker.gif instead. Quote Link to comment https://forums.phpfreaks.com/topic/30694-small-2d-chat-need-help-progressing/ Share on other sites More sharing options...
Daniel0 Posted December 15, 2006 Share Posted December 15, 2006 Got a demo somewhere? Quote Link to comment https://forums.phpfreaks.com/topic/30694-small-2d-chat-need-help-progressing/#findComment-141609 Share on other sites More sharing options...
irken Posted December 15, 2006 Author Share Posted December 15, 2006 [quote author=Daniel0 link=topic=118663.msg485293#msg485293 date=1166166168]Got a demo somewhere?[/quote]I do, but there's no real chatting going on. You'll just be presented with a room and some fields you're supposed to move around on :). As I wrote, I'm not sure where to proceed from here. But I'm actively continuing on the project.http://www.conventia.dk/create.php[img]http://img439.imageshack.us/img439/1391/chatwg6.png[/img] Quote Link to comment https://forums.phpfreaks.com/topic/30694-small-2d-chat-need-help-progressing/#findComment-141761 Share on other sites More sharing options...
irken Posted December 16, 2006 Author Share Posted December 16, 2006 Hmm.I think I better read up on some AJAX sometime soon. I just figured that refreshing the page every second would be pretty bad. I'm starting to understand what I'm doing aswell, it's hard when you can't visualize how the div's are going to be placed once you write "top:10px" - now I can! :).One problem I'm having is, currently I'm using a javascript function to move the the player's div to whatever field is pressed. How am I supposed to write those cordinates to the MySQL server, when it's being run from a JavaScript function. I might need to make an iframe which I can then do a .location on - from the javascript function - which redirects to a PHP script - WHICH then writes the values.. hmm. No? ;D.http://www.conventia.dk/create.php is you wanna try - tho you can't do anything but move around right now. Quote Link to comment https://forums.phpfreaks.com/topic/30694-small-2d-chat-need-help-progressing/#findComment-142118 Share on other sites More sharing options...
Daniel0 Posted December 17, 2006 Share Posted December 17, 2006 Your problem can be solved using AJAX. Quote Link to comment https://forums.phpfreaks.com/topic/30694-small-2d-chat-need-help-progressing/#findComment-143061 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.