A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Adding a menu

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    18

    Adding a menu

    Hi, I'm making a simple game using Actionscript 3 and, when I run it, it starts automatically. I need to, when it's run, to have a screen with a button that needs to be pressed for the game to actually start the playing. Like a pre game menu.

    I'll attach the game.

    Can anyone help me?
    Attached Files Attached Files

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    I'm not sure why you are having difficulties, especially after viewing the code. I would shift the code within the Main construction to another function that is called from the pre-game menu. Just create another MC that contains the button collection you want and call it at the beginning.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    18
    Thanks for helping.

    I managed to do it.

    Chiapa

  4. #4
    Junior Member
    Join Date
    Jun 2012
    Posts
    18
    However, now I need something to stop the game. Like a timer.

    I'm also trying to make a point counter. First, I just want to trace the number of ships that the player kills, then I'll think about putting it on stage.

    Can you help?

    thanks

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