1 Reply Latest reply on Sep 18, 2007 8:19 PM by Newsgroup_User

    AS Code layout and movie structure for game

    mac_55
      Hi.

      I'm creating a simple quiz game which will involve different rounds. Essentially it'll be linear. E.g. Action 1 - > Action 2 -> Action 3 etc.

      What I'm wondering is how to structure the code and movie to make it easier to code and manage. E.g. I could do all the actionscript in the first movie frame, but then how do I control the timeline for each individual section.

      Do you have any advice or examples for laying out code and timeline structure for a simple linear game.

      Thanks in advance!
        • 1. Re: AS Code layout and movie structure for game
          Level 7
          Hi --

          I worked on a very complex linear game project some time ago. I would create
          the action script for each section of the quiz in its own frame. For
          example, section 1 starts on frame 1 with its AS, section 2 on frame 2,
          section 3 on frame 3, etc.

          Rich

          "mac_55" <webforumsuser@macromedia.com> wrote in message
          news:fcmr1p$e2u$1@forums.macromedia.com...
          > Hi.
          >
          > I'm creating a simple quiz game which will involve different rounds.
          > Essentially it'll be linear. E.g. Action 1 - > Action 2 -> Action 3 etc.
          >
          > What I'm wondering is how to structure the code and movie to make it
          > easier to
          > code and manage. E.g. I could do all the actionscript in the first movie
          > frame,
          > but then how do I control the timeline for each individual section.
          >
          > Do you have any advice or examples for laying out code and timeline
          > structure
          > for a simple linear game.
          >
          > Thanks in advance!
          >