blimey. thank you very much. ive kind of "bodged" it already so it works enough for now, but ill keep your code in case my efforts don't do the job. i basically detected a collision and moved the ball to the edge of the surface manually before drawing it again, giving the illusion that it bounced. i have also limited the speed so the ball can't pass through the wall in one "tick". it should be enough to do what i want but i will probably need your code for next time.
thank you again andres,
neil
thank you again andres,
neil