Ejemplo n.º 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));
                }
            });
        }