Added: 5 years ago
From: FishThatDrown
Views: 6,738
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (7)

Sign In or Sign Up now to post a comment!
  • 22BrianMcfadden22. This is how i do it. "speed applied to ball" ball.xspeed=+1 ball.yspeed=+1 do ball.x += ball.xspeed ball.y += ball.yspeed "bounce of walls" if ball.x >= right.wall then ball.xspeed = -1 if ball.y >= bottom.wall then ball.yspeed = -1 if ball.x <= left.wall then ball.xspeed = +1 if ball.x <= top.wall then ball.yspeed = +1 loop
  • Nice tutorial

  • You not spammin' lol :P

  • Good one for understanding Timers in VB. Thanks

  • i'm doing pong game and i need a help... how can u make the ball reflect back when it hits the paddle...

    ShpBall.Left = ShpBall.Left + Hamt

    ShpBall.Top = ShpBall.Top + Vamt

    If ShpBall.Left >= 12360 Then ShpBall.Left = 6260 ShpBall.Top = 3360 Hamt = -1 * Hamt ' Vamt = -1 * Vamt

  • that has nothing to do with this

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more