-
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. :)
-
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.