Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.60 KB | None | 0 0
  1.         '0: stil, 1:naar beneden, 2: naar boven
  2.         Dim nieuwepositie As Point
  3.  
  4.         If Speler1Richting = 1 Then
  5.             If Label1.Location.Y < 425 Then
  6.                 nieuwepositie = New Point(Label1.Location.X, Label1.Location.Y + (1 * plankspeed))
  7.                 Label1.Location = nieuwepositie
  8.             End If
  9.         End If
  10.         If Speler1Richting = 2 Then
  11.             If Label1.Location.Y > 50 Then
  12.                 nieuwepositie = New Point(Label1.Location.X, Label1.Location.Y + (-1 * plankspeed))
  13.                 Label1.Location = nieuwepositie
  14.             End If
  15.         End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement