Beispiel #1
0
        public void MoveSpriteEx(int layer, string filename, Vector3[] points, float alpha, float time, bool isblocking)
        {
            Layer i = GetLayer(layer);

            if (filename != string.Empty)
            {
                i.CrossfadeLayer(filename, time, isblocking);
            }
            gameSystem.RegisterAction(delegate
            {
                i.MoveLayerEx(points, points.Length, 1f - alpha, time);
                if (isblocking)
                {
                    gameSystem.AddWait(new Wait(time, WaitTypes.WaitForMove, i.FinishAll));
                }
            });
        }
Beispiel #2
0
        public void ChangeBustshot(int layer, string textureName, float wait, bool isblocking)
        {
            Layer layer2 = GetLayer(layer);

            layer2.CrossfadeLayer(textureName, wait, isblocking);
        }