Gab*_*ono 0 overlay actionscript-3
我想为我当前的游戏添加一些额外的纹理,让我们说在所有内容之上叠加的grunge纹理.
我的整个项目(背景图像除外)都设置在主类上.
可能吗?怎么样?
截图:

小智 5
当然,只需在叠加层上禁用任何鼠标输入,它就像它甚至不存在一样.
public function LuckyHitBeta()
{
...
var overlay:Sprite = new Sprite();
overlay.addChild( /* your texture goes here as a Bitmap */ );
overlay.mouseEnabled = false;
overlay.mouseChildren = false;
addChild(overlay);
}
Run Code Online (Sandbox Code Playgroud)