I'm in the midsts of creating a guitar hero with visual basic i have button pressing down but i need more (i also have the part that makes the pictures move across the page)
what i need is... i need some one who can help me make this by, using a location to see if you missed the note...
i have..
eDIT!
Already a new update now i am able to press a key and send the notes down a line
Edit...
thats my code overall but im still getting problems
1.when i start up my program the pictures just shake? (look at keyboardtimer because it starts on form load)
what i need is... i need some one who can help me make this by, using a location to see if you missed the note...
i have..
Code:
if picturebox1.location.x = 10 or 15 or 20 or 25 or 30 or 35 or 40 or 45 or 50 then picturebox1.location.x = 0
eDIT!
Already a new update now i am able to press a key and send the notes down a line
Edit...
Code:
Public Class Form1
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Public Const VK_F9 = &H78
Private Sub PictureBox9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox9.Click
Me.Close()
End Sub
Private Sub Keyboardtimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Keyboardtimer.Tick
If GetAsyncKeyState(Keys.F1) And PictureBox10.Location.Y = 550 Or 545 Or 540 Or 535 Or 530 Or 525 Or 520 Or 515 Or 510 Or 505 Or 500 Then
keytime.Enabled = False
PictureBox10.Location = New Point(PictureBox10.Location.X, PictureBox10.Location.Y = 0)
keytime.Enabled = True
Else : My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If GetAsyncKeyState(Keys.F2) And PictureBox12.Location.Y = 550 Or 545 Or 540 Or 535 Or 530 Or 525 Or 520 Or 515 Or 510 Or 505 Or 500 Then
t2.Enabled = False
PictureBox12.Location = New Point(PictureBox12.Location.X, PictureBox12.Location.Y = 0)
t2.Enabled = True
Else : My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If GetAsyncKeyState(Keys.F3) And PictureBox13.Location.Y = 550 Or 545 Or 540 Or 535 Or 530 Or 525 Or 520 Or 515 Or 510 Or 505 Or 500 Then
t3.Enabled = False
PictureBox13.Location = New Point(PictureBox13.Location.X, PictureBox13.Location.Y = 0)
t3.Enabled = True
Else : My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If GetAsyncKeyState(Keys.F4) And PictureBox14.Location.Y = 550 Or 545 Or 540 Or 535 Or 530 Or 525 Or 520 Or 515 Or 510 Or 505 Or 500 Then
t4.Enabled = False
PictureBox14.Location = New Point(PictureBox14.Location.X, PictureBox14.Location.Y = 0)
t4.Enabled = True
Else : My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If PictureBox10.Location.Y = 555 Then
My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If PictureBox12.Location.Y = 555 Then
My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If PictureBox13.Location.Y = 555 Then
My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
If PictureBox14.Location.Y = 555 Then
My.Computer.Audio.Play("C:\WINDOWS\Media\chord.wav", AudioPlayMode.Background)
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Keyboardtimer.Enabled = True
End Sub
Private Sub keytime_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles keytime.Tick
PictureBox10.Location = New Point(PictureBox10.Location.X, PictureBox10.Location.Y + 5)
End Sub
Private Sub t2_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles t2.Tick
PictureBox12.Location = New Point(PictureBox12.Location.X, PictureBox12.Location.Y + 5)
End Sub
Private Sub t3_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles t3.Tick
PictureBox13.Location = New Point(PictureBox13.Location.X, PictureBox13.Location.Y + 5)
End Sub
Private Sub t4_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles t4.Tick
PictureBox14.Location = New Point(PictureBox14.Location.X, PictureBox14.Location.Y + 5)
End Sub
Private Sub PictureBox5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.Click
keywait.Enabled = True
w2.Enabled = True
w3.Enabled = True
w4.Enabled = True
End Sub
Private Sub keywait_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles keywait.Tick
keytime.Enabled = True
End Sub
Private Sub w2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles w2.Tick
t2.Enabled = True
End Sub
Private Sub w3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles w3.Tick
t3.Enabled = True
End Sub
Private Sub w4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles w4.Tick
t4.Enabled = True
End Sub
End Class
thats my code overall but im still getting problems
1.when i start up my program the pictures just shake? (look at keyboardtimer because it starts on form load)


