I fixed this by storing the position of the paddles x position in the variable xpos# and copied a second "sprite 2,xpos#,870,2" into the do-loop. I also hid the mouse cursor, because it got annoying.
Here is the full edited code:
rem trying to make breakout
hide mouse
type positiontype
x as integer
y as integer
endtype
type velocitytype
xoffset as float
yoffset as float
endtype
set display mode 1280,1024,32
screenwidth =1280
screenheight= 1024
load image "ball.png",1
load image "paddle.bmp",2
post as positiontype
velocity as velocitytype
post.x=800
post.y=900
sprite 2,800,870,2
scale sprite 2,50
velocity.xoffset=6
velocity.yoffset=-8
sprite 1,post.x,post.y,1
offset sprite 1,16,16
scale sprite 1,200
xpos# = 800
do
xpos#=xpos#+mousemovex()
sprite 2,xpos#,870,2
if mouseclick()=1 then h=1
if h=1
inc post.x,velocity.xoffset
inc post.y,velocity.yoffset
sprite 1,post.x,post.y,1
endif
wait 10
loop
end
There are better ways to do this, but thats pretty much the easiest way. That I thought of, anyway.