Try this
`-------------------------------
`- Project: Pong -
`-Created: 7/28/2004 5:44:58 PM-
`-------------------------------
`***Initial Settings***
sync on : sync rate 100
backdrop off : hide mouse
set display mode 1024,768,32
`***Load all media***
`load image "media/Ball.bmp",1
box 0,0,10,10
get image 1,0,0,10,10,1
sprite 1,504,365,1
`load image "media/Paddle.bmp",2
box 0,0,10,50
get image 2,0,0,10,50,1
sprite 2,0,330,2
`load image "media/Paddle2.bmp",3
sprite 3,974,330,2
x# = 5 `x speed
y# = 0 `y speed
`***Core Goes here***
Do
sync
`move ball
sprite 1,sprite x(1) + x#, sprite y(1) + y#, 1
`check collision
if sprite hit(1,3) or sprite hit(1,2)
`reverse x speed
x# = x#*-1
endif
rotate sprite 1,89
IF upkey()=1
move sprite 3,8
endif
IF downkey()=1
move sprite 3,-8
endif
loop
Also have a look at my first pong game thread in the newcommers forum. It uses planes innstead of sprites but the principles are still the same.
http://forum.thegamecreators.com/?m=forum_view&t=22030&b=7