Jump to content

"Small" 2D chat - need help progressing


irken

Recommended Posts

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/00488663

If 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.
Link to comment
Share on other sites

[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]
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.