private void TotalSave_Click(object sender, EventArgs e)
 {
     try
     {
         caja = new RectangleF(float.Parse(posX.Text), float.Parse(posY.Text),
             float.Parse(width.Text), float.Parse(height.Text));
         pictureBox1.Refresh();
     }
     catch (Exception _e)
     {
         MessageBox.Show("Solo se aceptan numeros como valores, " + _e.Message);
     }
     if (Estatico.Checked)
     {
         Elemento temp = new Elemento(0.0f, 0.0f, float.Parse(_W.Value.ToString()), float.Parse(_H.Value.ToString()), 1, (int)prof.Value, solido);
         temp.AddImg(SelectImage.Text);
         temp.type = "Estatico";
         temp.name = name.Text;
         temp.DefinePortion(caja.X, caja.Y, caja.Width, caja.Height);
         //int n = 0;
         foreach (string s in checkedListBox1.CheckedItems)
         {
             temp.AddTexto(s);
         }
         A_E(temp);
     }
     if (Animado.Checked)
     {
         Elemento_Ani temp = new Elemento_Ani(0.0f, 0.0f, float.Parse(_W.Value.ToString()), float.Parse(_H.Value.ToString()), 1, (int)prof.Value, solido);
         temp.AddImg(imagen.Text);
         button1.PerformClick();
         temp.AddAnimation(_Anima[0], F_H);
         temp.type = "Animado";
         temp.name = name.Text;
         foreach (string s in checkedListBox1.CheckedItems)
         {
             temp.AddTexto(s);
         }
         A_E(temp);
     }
     if (_Personajes.Checked)
     {
         Personaje temp = new Personaje(0, 0, float.Parse(_W.Value.ToString()), float.Parse(_H.Value.ToString()), 1,(int)prof.Value);
         temp.AddImg(imagen.Text);
         temp.type = "Personaje";
         temp.name = name.Text;
         //Caja de coliciones
         temp.rec[2].X = caja.X/temp.rec[0].Width;
         temp.rec[2].Y = caja.Y / temp.rec[0].Height;
         temp.rec[2].Width = caja.Width / temp.rec[0].Width;
         temp.rec[2].Height = caja.Height / temp.rec[0].Height;
         //Estatus de personaje
         try
         {
             temp.health = int.Parse(health.Text);
             temp.speed = int.Parse(speed.Text);
             temp.force = int.Parse(force.Text);
             temp.stamina = int.Parse(stamina.Text);
         }
         catch(Exception _e)
         {
             MessageBox.Show("Asegurese de introduir un satatus valido"+_e.Message);
         }
         foreach (Animacion a in _Anima)
         {
             temp.AddAnimation(a, F_H);
         }
         foreach (string s in checkedListBox1.CheckedItems)
         {
             temp.AddTexto(s);
         }
         if (player.Checked)
         {
             Jugador j = (Jugador)temp;
             j.clase = "Jugador";
             A_E(j);
         }
         else if (Enemy.Checked)
         {
             Enemigo En = (Enemigo)temp;
             En.clase = "Enemigo";
             A_E(En);
         }
         else if (_NPC.Checked)
         {
             NPC np = (NPC)temp;
             np.clase = "NPC";
             A_E(np);
         }
     }
 }