another version version 2
this version brings in acceleration to a max speed of the ball (acceleration is just bullet acceleration and max speed is on line 9)
it also slows down the ball as it passes through the bats.
one version (line 4)checks to see if the ball is going over 100 and then halves it
ball.Bullet.Speed>100 ? ball.bullet.Speed/2 : ball.Bullet.Speed
(I've not used these conditional operators before but it appears to work <img src="smileys/smiley1.gif" border="0" align="middle"> )
the other slow down is in (line 7)
ball.Bullet.Speed-((ball.Bullet.Speed>200)*100)
which takes 100 away from the speed if it is over 200.
I also added a random change of direction to the ball as it passes through the bats
ball.Bullet.AngleOfMotion+random(-30,30)
line 8 is to just stop the ball getting stuck going backwards ad forwards between two bats.
lines 5 and 2 check for collisions as I have turned off the solid check in bullets.
lines 3 and 6 check to see if the ball is going at the correct angle to bounce
else (lines 4 and 7)
pass through the bat. slow down the ball (if going fast enough). turn on acceleration. bend angle of the ball.