I am trying to make a game that is basically a re-skinned mario bros. I am trying to get the jump code working but I cannot seem to make the character collide with the top of blocks. He will jump and fall and stop when walking into a wall, but he just falls into said wall blocks when trying to jump onto their tops. Any help would be greatly appreciated. Thanks!