hi, i'm new to this and i've been programming for some months
but i have an issue while making a "space invaders" project for my school
whenever i try to play a background audio on loop with the game's music and i press the shoot button that also makes a sound it completely stops and i can only hear the laser sounds
is there any way to fix this? i know its probably me being ignorant and new but i'll appreciate some help :b
'this is the code to the background song
Code:
Public Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Panel1.Visible = True
My.Computer.Audio.Play(My.Resources.spaceinvaders1, AudioPlayMode.BackgroundLoop)
End Sub
'and this is the one for the laser sound
Code:
If e.KeyValue = Keys.X Then
laser.Visible = True
Movement_Var = True
timermain.Enabled = True
My.Computer.Audio.Play(My.Resources.shoot, AudioPlayMode.Background)