A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: [F8] [AS2/OOP] Loading individual levels and items

Hybrid View

  1. #1
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    Quote Originally Posted by tonypa
    You could also include the xml object into swf if you worry about the loading time. Or preload all the level xml files at the start.

    Then again, I have used completely different way in several games. You could use frames in movie clip to draw each level in the Flash itself. When each fame represents different level, to change level you simply show another frame. You drag all the items where they have to go in the Flash so its all visible when creating the game. Once the level loads you need some script to register position and type of every item by looping through the childs.

    Yeah it looks like XML is going to be my best bet if I want to keep this organized. I'm going to whip out ye olde Flash 8 ActionScript book and read up on the XML object.

    If anyone else has any suggestions though, I'm all ears.
    i'm obsessed with video games.

  2. #2
    bibuti. nolen's Avatar
    Join Date
    Sep 2002
    Location
    az.
    Posts
    191
    So far, XML has been perfect for this situation. Thanks for the suggestions everyone.


    I do have a question though: XML is fine for a web game, but what if I wanted to package this game (or future games) and distribute it as a PC/Mac application? I don't want the XML to be accessible by the end user, since they could just edit those files to do whatever they please.
    i'm obsessed with video games.

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