Hello, someone can help me solve the problem: When I shoot past 2 seconds nothing happens ... but when I shoot fast several bullets are paralyzed and react after: (
When firing several missiles they stop or hang only the missiles, this is the code that shows the missiles:
Public Sub DispararNave(ByVal X As Integer, ByVal Y As Integer)
Dim Bala As New PictureBox
Me.Controls.Add(Bala)
Bala.Width = 30
Bala.Height = 10
Bala.BorderStyle = BorderStyle.None
Bala.BackColor = Color.Transparent
Bala.BackgroundImage = My.Resources.NAVE_MALA
Bala.BackgroundImageLayout = ImageLayout.Stretch
Bala.Top = Y
Bala.Left = X
Bala.BringToFront()
Dim i As Integer
For i = 0 To 100
Application.DoEvents()
Bala.Location = New Point(Bala.Location.X, Bala.Location.Y - 20)
Threading.Thread.Sleep(1)
Next
End Sub
If someone could help me find the solution to this problem please:)