A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need Interface Code Help

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Need Interface Code Help

    K.. To start off i'm working on an interface to a space like game.. But i want it to apear in 3 frames so to speak.
    -----------------------------------
    | | | |
    | | | |
    | | GameScreen | |
    | | | |
    | ---------------------------
    |
    -------------------------------------

    Basically I'm using the MovieClip x & y to place where my ship is withhin the gamescreen.. I defined the borders of the GameScreen, my ship flips back over to the other side once it hits teh borders... However the ship is shown outside teh borders of the gamescreen into the rest of the interface. Any tips how to make the UI around the gamescreen solidly borders whats inside the gamescreen so... I guess what I could say, the content doesn't "bleed" otu of the gamescreen. Any help would be appreciated.

  2. #2
    Señor Member Mavrisa's Avatar
    Join Date
    Oct 2005
    Location
    Canada
    Posts
    506
    Create an invisible sprite (set alpha to 0 or just fill it with a transparent colour) that completely covers your game screen area. Then set the ship's .mask property to this sprite. That will keep your ship visible only when it's within the mask's bounds.

    Hope that helps.
    Haikus are easy
    But sometimes they don't make sense
    Refrigerator

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