You are on page 1of 1

Dim aux As String Dim i As Integer x = Velocidad * -1 aux = (Velocidad) * -5 + 100 Label1.Text = aux TextBox1.

Text = x If Velocidad > 0 Then ProgressBar1.Value = Velocidad * -5 + 100 Sleep(10) ProgressBar2.Increment(+100) End If If PictureBox1.Top > 400 Then Sleep(50) PictureBox1.Top = 400 Velocidad = Velocidad * -1 ProgressBar1.Value = aux * -1 + 100 ProgressBar2.Value = 100 Sleep(900) For i = 100 To i = 1 Step -1 ProgressBar2.Value = i PictureBox1.Top = PictureBox1.Top + Velocidad Sleep(10) Next i PictureBox1.Top = 400 End If If PictureBox1.Top = 2 Then Timer1.Enabled = False End If Velocidad = Velocidad + Fuerza PictureBox1.Top = PictureBox1.Top + Velocidad

You might also like