I have already got
if(sliderx_pos == x_pos && y_pos ==148)
{
x_speed *= -1;
y_speed *= -1;
}
The problem is that if the ball lands an any part the the slider it needs to bounce. At the moment its only bouncing off the far left hand side which represents the sliderx_pos. So i need away to say if the ball hits any part of the slider then bounce.
The slider width is 60 therefore i need away to say
if ball position is between 145 amd 205 then bounce.
Hope this makes sense.