Skip navigation
Currently Being Moderated

Beginners Game Making Questions

Oct 2, 2011 3:12 PM

Tags: #menu #programming #actionscript3 #game_programming #beginner

Greetings all!

 

I am new to the Flash platform but so far, I see lots of possibilities.  I am running into some challenges with flash and was hoping someone could shed some light on them.

 

1) For an action game, do you write directly to the stage or to a movie clip?  I see many examples writing directly to the stage, but if you do that, how do you control the Z index?  For instance, one issue I immediately ran into was having enemies spawn overtop of my HUD.

 

2) How do you implement game menus?  For instance, I've seen them as part of the game movie and as a seperate "master movie"... for instance... frame one->Start Menu, frame two->game screen with the Engine.as here doing all the action, and frame three-> gameOver menu.  I'm over simplifying it, but hopefully you get the drift.  Which is best practices?

 

3) Are there any best processes documents for game programming in Flash?

 

Thank you!

 

John

 
Replies
  • Currently Being Moderated
    Oct 3, 2011 2:21 AM   in reply to JohnCressman

    The thing i learnt when studying AS3, is no tutorials will really show you hoe to make a 'Full game' menu's and all. Its something you truly have to teach yourself. A nooby way of making a main menu would be to make it, then when the button is clicked make it unvisible, or tween of the stage(tween will work better) but this will only work in some circustances.

     

    By the sounds of it, your only using timline coding. So a main menu would be much easier. simply make it on frame one, then your game on frame 2 ect.

     

    But i reccomend looking into OOP (Object-Oriantated-Proggraming) 

     

    And for the HUD problem. organise your timeline into multiple layers. For example, Background, Player, Enemies, HUD. Then drag them into a poision that makes sense. For instance you would drag the Background layer to the bottom as you want it to be under everything else. And drag the HUD to the top as you want it to be above everything.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points