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
Shardogga 4 years ago
Nice tutorial
TomHax0r 4 years ago
This has been flagged as spam show
cool tutorial ! check mine ! just click my name and watch my tutorials !
SilverMagics 4 years ago
You not spammin' lol :P
KnucklesARouge 3 years ago
Good one for understanding Timers in VB. Thanks
LakkiMarwat 4 years ago 2
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
22BrianMcfadden22 4 years ago
that has nothing to do with this
juplm4000 3 years ago