Score Randomly Updates

BlitzMax Forums/BlitzMax Programming/Score Randomly Updates

Blitzogger(Posted 2012) [#1]
I am trying to get scores to work. However it seems the score seems to randomly increment after the frog reaches a certain velocity. The latest version of the source code can be obtained [url=http://dl.dropbox.com/u/102403704/Blitzogger.zip]here[/url]. Any assistance would be greatly appreciated.

Sincerely,

Blitzogger


Jesse(Posted 2012) [#2]
what is happening is that the frog reaches a speed to where it travels faster than the size of the player so randomly the collision fails. first it is position before the car and the next position is after the car so it misses the collision all together. you either need to set the max speed less than the height of the player. or check and break the movement in to increments less than the height of the truck. do several check per frame each moving less than the height of the player until you have reached the complete movement of the frog.