below is the function i've been calling in the main function to set the ball catcher. then followed by the function that will let the ball move (startBouncing)
function setCatcher(PANEL* panCatcher)
{
panRoundedCatcher = panCatcher;
while(1)
{
panCatcher.pos_x=clamp(panCatcher.pos_x+(time_step*mouse_force.x*50), 0, screen_size.x-bmap_width(panCatcher.bmap)*panCatcher.scale_x);
wait(1);
}
}
Please advise.