A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Simple Question before venturing into XML

  1. #1
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976

    Simple Question before venturing into XML

    Just wondering how hard and how would i do this

    What i want is explained how i would do this not the code just in english how it would be done.

    I am looking at adding a online side to one of my games and i was wondering how this would work and if it would be hard for a newbie or below XML flasher .

    What i am going to do is do little tests and progresss in learning like that. Now i can code standalone flash games easily but when it comes to XML i wouldnt have a clue.What data needs to bee sent eg _x pos and so on.

    For my first test i want people to be able to log on to the flash game and controll the avatar with the arrow keys. Now how would i make it work accross xml ? when multiple people log on ?

    This all might not make sence but if you would like i will refraise it all . Also is their any teck notes i might be able to read on XML and or specifically on the topic at hand

    ThankS in AdvanE

  2. #2
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Here i made a quick example:

    test game

    what i want to know how to do is update each players position through xml , how can i do this ?

  3. #3
    ...in human form
    Join Date
    Aug 2002
    Posts
    188
    To do what you're trying to do xml isn't neccessary. Not in terms of the live action. If howevery you wanted to save variables for a player which could be loaded up again on a new game xml would be great for holding that information.
    Incarnations

  4. #4
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    What about when other people log on. When they move do i just change their variable on where they are eg,


    palyer2x = 25;
    player2y = 40;

    and when they move just update that ?

    Are they any examples i can browse through that you know of

  5. #5
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Has anyone here used xml with games before ?

  6. #6
    general rule bender Gloomycus's Avatar
    Join Date
    Nov 2000
    Location
    ontario canada
    Posts
    1,538
    I think you need to have an XMLSocket server thingy (???)

  7. #7
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Yeh thats it.. I bought a book ne way on xml, i think its better i learn by myself and not ask other people to help with entire projects , ill only ask questions if i have a specific problem or if i am stuck thats anyway guys

  8. #8
    Member
    Join Date
    Aug 2002
    Posts
    72
    if you havent seen it, try Unity (http://www.moock.org/unity)...it allows you to use a library of Java classes to define rooms, and then define your own data types, so you could start passing xy positions of avatars to the rest of the connected clients.

    Its Java based, but it allows you to get rolling right off the install with chat systems etc., and with a bit of work you can could get the tracking system going.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center