1 Replies - 286 Views - Last Post: 23 July 2013 - 09:00 PM Rate Topic: -----

#1 asian@mikelim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-July 13

help with proggraming

Posted 23 July 2013 - 08:46 PM

hello,
can i have some help with making walls from lblwall1 to 10. thanks you i have tried many ways but am still having trouble.



Public Class Form6
Private Sub form1_keydown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyValue
Case Keys.Right
picplayer.Left += 10 'let player move to the right
Case Keys.Left
picplayer.Left -= 10 'let player move to the left
Case Keys.Down
picplayer.Top += 10 'let player move to down
Case Keys.Up
picplayer.Top -= 10 'lets player move up
Case Keys.Escape
Me.Close()
End Select
If collision(picplayer, lblwin) Then
Me.Close()
Form7.Show()
End If
End Sub

Private Sub lblmenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblmenu.Click
Form3.Show() 'shows the menu
Me.Close() 'close this level
End Sub

Private Sub picplayer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picplayer.Click

End Sub
End Class

Is This A Good Question/Topic? 0
  • +

Replies To: help with proggraming

#2 vks.gautam1  Icon User is offline

  • D.I.C Regular

Reputation: 17
  • View blog
  • Posts: 317
  • Joined: 21-March 08

Re: help with proggraming

Posted 23 July 2013 - 09:00 PM

Do you have other controls also on form ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1