Tile Collision

Hi,

I got my tile collision working in my sandbox game, but when a player is say moving right and hits a block/platform, I’d like him to automatically move up this block like in Terraria.

                        BBBBB
                 PBBBB

BBBBBBBBBBBBB

B is block, P is player, player has hit block, and they continue pressing right key so now want them to go up the block onto the platform without having to jump, hope this makes sense?

Thanks