Need help with ball bouncing around on the screen.

BlitzMax Forums/BlitzMax Programming/Need help with ball bouncing around on the screen.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Try to change the orden in which you do the update:

1.) Calculate the new positions of the ball
2.) Check against a collision
3.) Draw the ball.

This is also not correct by 100%, because for a defenitely correct collision you have to calculate the correct position of the collision - because if you recognice a collision at point 2 - you can not assume that the collsion happened at the balls new position, it is more likely that it happened somwhere between the two points, debending on speed and size of your objects