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?
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.
Europe, Middle East and Africa