Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-01-2012, 02:20 AM   #1
tydygunn
Registered User
 
Join Date: Jun 2011
Posts: 25
Default [AS3] Proper way to handle game menus

Hi all, I've searched on google in vain for a bit, so I'm here to ask you all now:

Is there a "proper" way to handle the menu system for flash games? Right now I have a "gui_mc" which has different frames labeled "Loading", "Title", "Play", "Gameover", and so on. I place this movieclip on the stage first, then use "gotoAndStop();" whenever the user clicks a button to navigate the different menus of my game. It just seems rather clunky, and I'd rather create a menu purely in actionscript.

Any tutorials around the internet, or maybe a book you all could recommend? As I said, I've had no such luck with google.

Thanks!
tydygunn is offline   Reply With Quote
Old 02-01-2012, 04:28 AM   #2
rickywh
Senior Member
 
Join Date: Jan 2010
Posts: 247
Default

I'd create the whole thing using actionscript along with objects that you created using the flash authoring tool. Combine the two techniques.
rickywh is offline   Reply With Quote
Old 02-01-2012, 08:20 AM   #3
nyr68j
CGT Student
 
Join Date: Jul 2009
Location: Dundee
Posts: 48
Default

I've started to use finite state machines (FSM) to control the flow of my games. I'm not sure if this is the correct method for dealing with the states of the game, but it does seem to offer a nice clean way to deal with what you're asking for and more. gotoandlearn.com has video tutorials explaining how to implement a simple FSM and you should be able to adapt this to your own games. Hope this helps.
nyr68j is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.