falling through the ground

BlitzPlus Forums/BlitzPlus Programming/falling through the ground

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.

ahhh! OK, here is one way. Perform your collision check before you actually move your player. In other words, try and predict the next x & y coordinates of your player before you actually move him. If your player + the next gravity value would position your player below the ground then let the y of your player = the ground y (- height of your image).

Hope that helps.