Need Help With Another Game!

Blitz3D Forums/Blitz3D Beginners Area/Need Help With Another Game!

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Why not only check for collisions? You don't need to find out whether it's a left collision or not.

Record the players x and y co-ords.
Check for movement control moving the player along the x-axis.
If movement causes collision, restore old x value.
Check for movement control moving the player along the y-axis.
If movement cause collision, restore old y value.

Draw_everything()

DONE

Just make sure you draw everything last. No movement should be done, or corrected AFTER the drawing is done, as you will see the effects of positions moving due to collisions.