Ejemplo n.º 1
0
        ///////////////////////////////////////
        //////// LABEL DE TIEMPO PODER/////////
        ///////////////////////////////////////
        private void TiempoPoder_Tick(object sender, EventArgs e)
        {
            tiempoCentinela--;
            Duracion.Text = "Duracion Efecto : " + tiempoCentinela;

            if (tiempoCentinela == 0)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
                Centinela.Location = new Point(926, 118);
                Pierdes2Lv3.Start();
                TiempoPoder.Stop();
                tiempoCentinela  = 10;
                Duracion.Text    = "Duracion Efecto : " + tiempoCentinela;
                Duracion.Visible = false;
            }
        }
Ejemplo n.º 2
0
        private void CentinelaAparicion_Tick(object sender, EventArgs e)
        {
            /////////////////////////////////////
            //// APARICIONES DEL CENTINELA ////////
            /////////////////////////////////////

            if (tiempo == 295)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 260)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }

            if (tiempo == 275)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 250)
            {
                Centinela.Location = new Point(926, 118);
            }
            if (tiempo == 200)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 190)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 100)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 80)
            {
                Centinela.Location = new Point(926, 118);
            }


            ////////////////////////////////////////////
            ////COLISION ENTRE CENTINELA Y MONSTRUO/////
            ////////////////////////////////////////////
            if (Poder.IntersectsWith(Monstruo))
            {
                Pierdes2Lv4.Stop();
                TiempoPoder.Start();
                Duracion.Visible   = true;
                Centinela.Location = new Point(926, 118);
            }
            if (tiempoCentinela == 0)
            {
                Pierdes2Lv4.Start();
                TiempoPoder.Stop();
                tiempoCentinela    = 10;
                Duracion.Text      = "Duracion Efecto : " + tiempoCentinela;
                Duracion.Visible   = false;
                Centinela.Location = new Point(926, 118);
            }
        }