You can use BGGET.
ID=BGGET(LAYER,X,Y,SYSTEM FLAG)
System flag is for coordinates
0 is for BG coordinates(character units, like text)
1 is for screen coordinates(pixel units)
You just need to keep the characters old X/Y so you can keep him out of the platforms. hope this helps :)