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 T1ger
    Ehm, I didnt read every single character of your first post.. but didn't you ask how to load the rooms individually? (Actually you just have to read the title to get that)

    If you load the rooms induvidually whenever you enter it, youre bound to get a small loading-time..
    Yeah perhaps my wording is incorrect. Maybe when I say 'loading' I mean declaring? I am just curious how other people would go about creating a game like the one I am trying to achieve. How would you setup your world with different 'rooms', each with their own items?

    Does that help?
    i'm obsessed with video games.

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Location
    USA
    Posts
    383
    It seems as if you're just trying to accomplish how to represent a room with different items?

    If that's correct, then you can just create a room class with an array of items.

    You can use XML to set up your room objects and items for each room.

    Call or load the corresponding room object depending on where the player moved.

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