Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Vb 6 Tutorial 2 Bouncing ball

Loading...

Sign in or sign up now!
10,552
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 17, 2008

Bouncing ball for vb,
The trickiest code is in the timer1

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • Thanks but could you take it slower? lol

    Nice tut

  • u should add source god or a zip of the project

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • I did everything as instructed here in this video but The bOuncing Ball ended up bouncing up and down. What do you think was the problem? Anyway, thanks a lot for the big help :)

  • I dislike this video. For making the tutorials further

    1.you should type the code rather than copy paste.

    2.You should have to zoom the window while typing so the code can be read without stress on eyes.

    3.Should have to explain the logic behind the code. As the codes are already available in books also but the missing part is explanation of logic.

  • Twitchvald10 thx for code

  • Private Sub Timer1_Timer() Shape1.Left = Shape1.Left + xspeed Shape1.Top = Shape1.Top + yspeed If Shape1.Left > (Form1.Width - Shape1.Width - (Form1.Width - Form1.ScaleWidth)) Then xspeed = xspeed * -1 End If If Shape1.Top > (Form1.Height - (Form1.Height - Form1.ScaleHeight)) Then yspeed = yspeed * -1 End If If Shape1.Left < 0 Then xspeed = xspeed * -1 End If End Sub
  • 'vbkeyf4 115 f4 key

    if shift = vbaltmask then

    if keycode = vbkey f4 then

    end

    end if

    end if

    if keycode = vbkeyescape then

    end end if

  • THANK YOU VERY MUCH!!!!!!!!!!!!!!

  • oh yeah make your next vid with the code in the discription

  • Thx man you are awsome !! ;)

  • Great video! The code was very well wrote.

    If you what to see the text better, watch it in HD!

Loading...

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