New Bug in Platform Code.

BlitzMax Forums/BlitzMax Beginners Area/New Bug in Platform Code.

"The distance between them is exactly 32 pixels. This is the width of the player."

It's common practice to never have a gap in the tile map that equals the width of a player. If you want a player to fall into a 32 pixel wide gap, then the player should be 30 pixels or less. Making a 32 pixel wide player fall into a 32 pixel wide gap opens up a can of worms in the logic code. If your player is moving anything greater than 1 pixel per frame, think about the coding logistics in that scenario. ;)

Another trick commonly used, is to have a 32 pixel wide player but only code the tile collisions on the middle 30 pixels. This will let you fall into 32 pixel wide gaps easier, etc.